G-EIP-700-TLS-7-1-eip-steph.../website/Dockerfile

15 lines
275 B
Docker
Raw Permalink Normal View History

2024-11-28 03:35:42 +00:00
ARG VER=1.23
2024-12-17 04:20:07 +00:00
FROM "docker.io/golang:$VER" AS build
2024-11-28 03:35:42 +00:00
WORKDIR /build/
ARG VER
COPY main.go .
2024-11-28 03:39:23 +00:00
RUN printf "module main\ngo $VER" > go.mod && CGO_ENABLED=0 go build -o /app
2024-11-28 03:35:42 +00:00
FROM scratch
COPY --from=build /app /app
COPY static/ /static/
COPY html/ /html/
EXPOSE 3000
CMD ["/app"]