pojntfx-weron
SUCCESS
2m 37s
History Source
SummaryIterations1Transcript2Dockerfile
01Iteration 1
WRITEWriteFile· step #1
1s
Dockerfile494 bytes written
text28 lines · 494 chars
# Build container
FROM golang:bookworm AS build

# Setup environment
RUN mkdir -p /data
WORKDIR /data

# Build the release
COPY . .
RUN make build/weron

# Extract the release
RUN mkdir -p /out
RUN cp out/weron /out/weron

# Release container
FROM debian:stable-backports AS runtime

# Add certificates
RUN apt-get update && apt-get install -y ca-certificates

# Add the release
COPY --from=build /out/weron /usr/local/bin/weron

RUN chmod +x /usr/local/bin/weron

CMD ["/usr/local/bin/weron"]
VERIFYVerifyBuild· step #2
1m 04s
VerifyBuildaccepted
Smoke [PASS]: test -x /usr/local/bin/weron
Smoke [PASS]: /usr/local/bin/weron --version 2>&1 | head -n1
Smoke [PASS]: /usr/local/bin/weron --help 2>&1 | head -n1