14 lines
198 B
Docker
14 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"]
|