Something went wrong. Try again.
An event companion and onboarding experience for the ATmosphere (alpha) atmo.quest
Something went wrong. Try again.
atmoquest Dockerfile
618 B · 20 lines
Dockerfile
123456789101112131415161718192021FROM docker.io/golang:1.26-alpine AS build
RUN apk add --no-cache upx ca-certificates
WORKDIR /srcCOPY . ./RUN go mod downloadRUN --mount=type=cache,target=/root/.cache/go-build \go build -ldflags="-s" -o /bin/main ./cmd/webRUN upx -9 -k /bin/main
FROM litestream/litestream:latest AS litestream
FROM scratchENV PORT=9001COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/COPY --from=litestream /usr/local/bin/litestream /usr/local/bin/litestreamCOPY litestream.yml /etc/litestream.ymlCOPY --from=build /bin/main /ENTRYPOINT ["/usr/local/bin/litestream", "replicate", "-exec", "/main"]