yw5ncom/Dockerfile
ange 1e228ed338
All checks were successful
/ deploy (push) Successful in 34s
go backend (#1)
Reviewed-on: #1
2024-09-28 16:16:52 +00:00

11 lines
232 B
Docker

FROM docker.io/golang:1.23 as build
COPY src/ .
RUN printf 'module yw5n\ngo 1.23' > 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"]