softplayer-backend/Containerfile
Nikolai Rodionov 54aabc642d
All checks were successful
ci/woodpecker/push/build Pipeline was successful
Add ssl to the final image
2024-05-05 19:52:41 +02:00

14 lines
238 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
COPY --from=0 /etc/ssl /etc/ssl
ENTRYPOINT ["/app"]