Files
softplayer-backend-leg/Containerfile
2026-04-27 13:38:15 +02:00

15 lines
268 B
Docker

FROM golang:1.26.2
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
COPY migrations /migrations
ENTRYPOINT ["/app"]