G-EIP-700-TLS-7-1-eip-steph.../website/Dockerfile
ange df8cd1ea54
All checks were successful
/ mirror (push) Successful in 4s
/ deploy (push) Successful in 34s
Add pitch (#7)
Co-authored-by: stcb <21@stcb.cc>
Reviewed-on: #7
Co-authored-by: ange <ange@yw5n.com>
Co-committed-by: ange <ange@yw5n.com>
2024-12-20 09:43:39 +00:00

15 lines
275 B
Docker

ARG VER=1.23
FROM "docker.io/golang:$VER" as build
WORKDIR /build/
ARG VER
COPY main.go .
RUN printf "module main\ngo $VER" > go.mod && CGO_ENABLED=0 go build -o /app
FROM scratch
COPY --from=build /app /app
COPY static/ /static/
COPY html/ /html/
EXPOSE 3000
CMD ["/app"]