time-api-e1bf — Running app on heyo

Status: Done

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

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 /app/time-api
EXPOSE 8080
Port
8080
Start
cd /app && PORT=8080 setsid nohup ./time-api </dev/null &

Agent Notes

The build was accepted. This is a minimal Alpine-based microVM. The build stage compiles the Go app (`time-api`) from the repo with CGO disabled, and the final Alpine stage ships only that binary plus `socat` (needed for log streaming) and a `/bin/sh` for `start_command`. It serves HTTP on `0.0.0.0:8080` with `GET /` returning the current UTC time and `GET /healthz` returning `ok`, matching the README.

  • Kept the golang:1.23 build stage to compile the Go binary with CGO disabled
  • Replaced the distroless final stage with alpine:3.20 (has /bin/sh) and installed socat, per heyo rules
  • Copied the built binary into /app/time-api and exposed port 8080; start_command sets PORT and backgrounds the app

Planned from Your Repository

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

The build was accepted. This is a minimal Alpine-based microVM. The build stage compiles the Go app (`time-api`) from the repo with CGO disabled, and the final Alpine stage ships only that binary plus `socat` (needed for log streaming) and a `/bin/sh` for `start_command`. It serves HTTP on `0.0.0.0:8080` with `GET /` returning the current UTC time and `GET /healthz` returning `ok`, matching the README.

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 /app/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 README.md
agent ▸ read_repo_file Dockerfile
agent ▸ read_repo_file go.mod
agent ▸ read_repo_file main.go
agent ▸ heyo_rules
agent ▸ submit_build accepted
agent ▸ planned time-api-e1bf
store ▸ fireup/time-api-e1bf-recipe:e1bf6f67 → 90a16e64e69f
app-lb ▸ deployment time-api-e1bf registered (build 1 of at most 3)
app-lb ▸ build job-69f3b8c9295c started
build ▸ fireup/time-api-e1bf-recipe:e1bf6f67 resolves to 90a16e64e69fda3ad6a18e430b5febcb0d9f89e956dd5b896412ea0427de59fd at https://admin.us5.heyo.work/namespaces/fireup/artifacts (Dockerfile f6d092c10755, 218 B)
build ▸ fetching 218 B from https://admin.us5.heyo.work/namespaces/fireup/artifacts/blobs/f6d092c10755e3e040853e611dc9c38ad5e7d5fb12d3f21c4cf7da0867cba253
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-e1bf/.recipe/Dockerfile.app-lb -c /var/lib/app-lb/builds/time-api-e1bf/.recipe/context -n time-api-e1bf-90a16e64e69f --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-e1bf/.recipe/Dockerfile.app-lb...
build ▸   Docker build complete: heyvm-rootfs-time-api-e1bf-90a16e64e69f: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/.tmpuyU1d5/rootfs.ext4 (128.0 MB)
build ▸ Saved local image at /var/lib/heyvm/images/firecracker/images/firecracker/time-api-e1bf-90a16e64e69f.ext4
build ▸ Create a sandbox with: heyvm create --backend firecracker --image time-api-e1bf-90a16e64e69f
build ▸ uploading /var/lib/heyvm/images/firecracker/images/firecracker/time-api-e1bf-90a16e64e69f.ext4 (134217728 bytes) to the daemon
build ▸ installed as /var/lib/heyvm/images/firecracker/time-api-e1bf-90a16e64e69f.ext4 on the daemon
build ▸ vm.image (daemon default) -> time-api-e1bf-90a16e64e69f; pool recycling
app-lb ▸ built image time-api-e1bf-90a16e64e69f
heyo ▸ waiting for https://time-api-e1bf.us5.heyo.work to answer
heyo ▸ live: https://time-api-e1bf.us5.heyo.work answered 200