court/Dockerfile
2024-03-28 11:29:32 +01:00

15 lines
198 B
Docker

FROM golang:1.22-alpine3.19
WORKDIR /src
COPY . /src
RUN go mod tidy && go build
FROM scratch
WORKDIR /app
COPY templates templates
COPY --from=0 /src/court court
EXPOSE 8080
CMD ["/app/court"]