-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
16 lines (14 loc) · 764 Bytes
/
Copy pathDockerfile
File metadata and controls
16 lines (14 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Minimal release image for `agentenv` — distroless static base, no shell, no
# package manager, just the binary. Built and pushed to ghcr.io by goreleaser
# (see `dockers:` in .goreleaser.yaml).
#
# The build context is goreleaser's per-arch dist/ subdirectory, which already
# contains the pre-compiled `agentenv` binary — so this Dockerfile is just a
# COPY + ENTRYPOINT. No `go build` happens here.
#
# Note: agentenv calls `bash -lc` inside the *managed rootfs* (work/current),
# never inside this image. So a distroless host image is fine; bash is only
# required in whatever rootfs you `init --from` or `init --tarball` later.
FROM gcr.io/distroless/static-debian12:nonroot
COPY agentenv /usr/local/bin/agentenv
ENTRYPOINT ["/usr/local/bin/agentenv"]