A local-first multi-agent app development platform, built on PenguinHarness
An official Docker image, built from source
- Date: 2026-09-04
- Type: feature
- Scope:
ci,tooling,docs - PR: #609
PenguinHarness gained an official container image, Docker Hub hiyouga/penguinharness, built from this repository's source for linux/amd64 and linux/arm64. Every push to main publishes that commit as latest, with main-<sha7> as an immutable twin; a release publishes X.Y.Z, X.Y, and stable while the tag is GitHub's current latest Release. It runs penguin server on 0.0.0.0:7364 with the data root on a /data volume, so a deployment is one container and one volume. The compose file and every documented docker run publish the port on the host's loopback (127.0.0.1:7364:7364), which leaves a fresh deployment reachable only from the machine running Docker; opening it to a network is an explicit choice, documented alongside the reverse-proxy notes.
Details
- The image is built by the recipe that assembles the shipped CLI: install the workspace, build the packages the server needs,
pnpm deploya production dependency tree into/opt/penguin/lib, and put the built web assets beside it in/opt/penguin/web. The stages split by where each has to run — the workspace build is pinned to the build platform, because TypeScript and Vite emit the same bytes on any machine, and a second stage on the target platform recompilesnode-pty, the only compiled dependency in that tree and one that publishes no Linux prebuild. The runtime stage copies the result and never installs a compiler.PENGUIN_VERSIONandPENGUIN_COMMITbuild args carry the image labels, and the commit is stamped into the build the way a release stamps it. - The base is Ubuntu 24.04 plus the official nodejs.org runtime, pinned to the version
release.ymlbundles into the release tarballs and verified against that release'sSHASUMS256.txt.git,curlandca-certificatesare the only other packages, for the commands an agent runs. - The container starts as root solely to take ownership of the top level of the data root, then
setprivdrops topenguin(uid/gid 1000): a bind mount needs no preparation on the host, and nothing but the entrypoint runs privileged.tiniis PID 1, so the orphans an agent's shell commands leave behind are reaped. HEALTHCHECKprobes the publicGET /api/install..github/workflows/docker.ymlholds the build and publish steps and owns both tag policies: a push tomain, which carries no path filter, and aworkflow_callfromrelease.yml'sdockerjob, gated the waymirror-ossis and checked out at the tag. Nothing installs from npm any more, so that job no longer waits onpublish-npm. A pull request touching theDockerfile,docker/or that workflow runs the same file as an amd64 smoke build of the pull request's own source, which starts the container and checks readiness, sign-in, the healthcheck, the process user, a graceful stop and a restart onto the same data root.docker/compose.yamlis the copy-and-run deployment. A new Docker quickstart documents the first sign-in through the log, upgrading by pulling a new tag (in-container self-update is not supported), reverse proxies, Workspace previews and the forgotten-password rescue; the README install sections and the Quickstart route tables gained the route in both languages.