G-EIP-700-TLS-7-1-eip-steph.../website/Dockerfile
ange c7e348c190
Some checks failed
/ mirror (push) Successful in 4s
/ deploy (push) Failing after 9s
feat: website autodeploy scripts
2024-11-28 03:35:42 +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 yw5n\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"]