Files
oauth2-api/Dockerfile
Björn Benouarets 346100feb6 init: Initial commit
2026-01-21 06:36:38 +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"]