blob: 8c750c371ade6f43ece283a0c5c737c440c1b883 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
FROM golang:1.23.6 AS builder
WORKDIR /build
COPY go.mod go.sum ./
RUN go mod download
COPY . /build
RUN go build -o /build/server .
################################################################################
FROM golang:1.23.6
WORKDIR /app
COPY --from=builder /build/server /app/server
CMD ["/app/server"]
|