yw5ncom/Dockerfile
ange 9c1c9ada90
All checks were successful
/ deploy (push) Successful in 46s
feat: go backend
2024-09-28 23:00:40 +07:00

11 lines
228 B
Docker

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