time-api-c859 — Running app on heyo

Status: Done

ReadPlanPublishBuildVerifyDone
App
https://time-api-c859.us5.heyo.work
Deployment
time-api-c859
Recipe
fireup/time-api-c859-recipe:c8595cca

Dockerfile (heyo-ready)

Rewritten by the agent. Download

FROM golang:1.23 AS build
WORKDIR /src
COPY go.mod ./
COPY *.go ./
RUN CGO_ENABLED=0 go build -o /out/time-api .

FROM alpine:3.20
RUN apk add --no-cache socat
COPY --from=build /out/time-api /time-api
EXPOSE 8080
Port
8080
Start
cd / && PORT=8080 setsid nohup /time-api </dev/null &

Agent Notes

Build accepted. The VM is a slim Alpine-based rootfs containing a statically linked Go binary (`time-api`) built from the repo, plus socat for log streaming. `start_command` launches it via `setsid nohup` as a background daemon with `PORT=8080`, and it listens on `0.0.0.0:8080` (Go's `:port` binds all interfaces), so app-lb can health-check `/healthz` and proxy `/` behind HTTPS.

  • Swap final stage from pure distroless to alpine:3.20 so the rootfs has /bin/sh (required for start_command) and can host socat.
  • Add socat in the final stage (required for heyvm log streaming); apk caches auto-clean with --no-cache.
  • Drop ENTRYPOINT/ENV (not used by heyo) and set PORT=8080 in start_command, since base-image ENV does not reach it.
  • Keep the single-stage Go build (CGO off) and copy the static binary into the small Alpine stage.

Planned from Your Repository

https://remote.heyo.work/fireup/example-time-api.git at 8890d3fc70b5

Build accepted. The VM is a slim Alpine-based rootfs containing a statically linked Go binary (`time-api`) built from the repo, plus socat for log streaming. `start_command` launches it via `setsid nohup` as a background daemon with `PORT=8080`, and it listens on `0.0.0.0:8080` (Go's `:port` binds all interfaces), so app-lb can health-check `/healthz` and proxy `/` behind HTTPS.

FROM golang:1.23 AS build
WORKDIR /src
COPY go.mod ./
COPY *.go ./
RUN CGO_ENABLED=0 go build -o /out/time-api .

FROM alpine:3.20
RUN apk add --no-cache socat
COPY --from=build /out/time-api /time-api
EXPOSE 8080

Log

fireme ▸ new running app on heyo job from https://remote.heyo.work/fireup/example-time-api.git
git ▸ fetching the tree of https://remote.heyo.work/fireup/example-time-api.git
git ▸ 4 files at 8890d3fc70b5
git ▸ the repository is the build context (0 KB)
agent ▸ mercury-3 on Inception, then z-ai/glm-5.3-flash on OpenRouter reading the repository…
agent ▸ read_repo_file Dockerfile
agent ▸ read_repo_file README.md
agent ▸ read_repo_file go.mod
agent ▸ read_repo_file main.go
agent ▸ heyo_rules
agent ▸ submit_build accepted
agent ▸ planned time-api-c859
store ▸ fireup/time-api-c859-recipe:c8595cca → 91cb464cc286
app-lb ▸ deployment time-api-c859 registered (build 1 of at most 3)
app-lb ▸ build job-0ce7037fd01d started
build ▸ fireup/time-api-c859-recipe:c8595cca resolves to 91cb464cc2864c7bb5f255188b31c95427c8d5e2ce99c3176f40dee0af9c77d3 at https://admin.us5.heyo.work/namespaces/fireup/artifacts (Dockerfile 1e14916df23a, 214 B)
build ▸ fetching 214 B from https://admin.us5.heyo.work/namespaces/fireup/artifacts/blobs/1e14916df23a93b97ae0de915f88585887e4c1fc4bb92299106e3bf5e28d2473
build ▸ fetching 963 B from https://admin.us5.heyo.work/namespaces/fireup/artifacts/blobs/9840a4273ac32f98778c59783c1fdf9cda2926b5aead793b64781d06a697e238
build ▸ unpacked 4 files (1.1 KiB) of build context
build ▸ the Dockerfile never mentions /init.sh, so app-lb adds its standard guest init (it starts nothing; the deployment's start_command starts the app)
build ▸ $ heyvm mvm build -f /var/lib/app-lb/builds/time-api-c859/.recipe/Dockerfile.app-lb -c /var/lib/app-lb/builds/time-api-c859/.recipe/context -n time-api-c859-91cb464cc286 --local-only
build ▸ Checking prerequisites...
build ▸   Docker: OK
build ▸   mke2fs: OK
build ▸   Running as root, fakeroot not needed
build ▸ Building Docker image from /var/lib/app-lb/builds/time-api-c859/.recipe/Dockerfile.app-lb...
build ▸   Docker build complete: heyvm-rootfs-time-api-c859-91cb464cc286:latest
build ▸ Exporting container filesystem...
build ▸   Exported 16.3 MB tar archive
build ▸ Creating ext4 rootfs image (128 MB)...
build ▸   Created rootfs.ext4 (128.0 MB)
build ▸ Cleanup: removing Docker container and image...
build ▸ Build complete: /tmp/.tmpXeBS9V/rootfs.ext4 (128.0 MB)
build ▸ Saved local image at /var/lib/heyvm/images/firecracker/images/firecracker/time-api-c859-91cb464cc286.ext4
build ▸ Create a sandbox with: heyvm create --backend firecracker --image time-api-c859-91cb464cc286
build ▸ uploading /var/lib/heyvm/images/firecracker/images/firecracker/time-api-c859-91cb464cc286.ext4 (134217728 bytes) to the daemon
build ▸ installed as /var/lib/heyvm/images/firecracker/time-api-c859-91cb464cc286.ext4 on the daemon
build ▸ vm.image (daemon default) -> time-api-c859-91cb464cc286; pool recycling
app-lb ▸ built image time-api-c859-91cb464cc286
heyo ▸ waiting for https://time-api-c859.us5.heyo.work to answer
heyo ▸ live: https://time-api-c859.us5.heyo.work answered 200