13 lines
206 B
Docker
13 lines
206 B
Docker
FROM golang:1.22
|
|
WORKDIR /app
|
|
|
|
COPY go.mod ./
|
|
COPY go.sum ./
|
|
RUN go mod download
|
|
COPY . ./
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -o backend
|
|
|
|
FROM scratch
|
|
COPY --from=0 /app/backend /app
|
|
ENTRYPOINT ["/app"]
|