15 lines
198 B
Text
15 lines
198 B
Text
|
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"]
|