Files
mgmt-api/Dockerfile
Björn Benouarets e13859a3ac init: Initial commit
2026-01-21 06:35:35 +01:00

21 lines
262 B
Docker

FROM golang:1.25.3-alpine AS builder
WORKDIR /app
COPY ./app/go.mod ./app/go.sum ./
RUN go mod download
RUN go mod verify
COPY ./app ./.
RUN go build -o app .
FROM alpine:latest AS runner
WORKDIR /app
COPY --from=builder /app/app /app/app
CMD ["./app"]