court/Dockerfile

15 lines
198 B
Text
Raw Normal View History

2024-03-28 11:29:32 +01:00
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"]