mc-router/Dockerfile

14 lines
244 B
Docker
Raw Normal View History

FROM golang:1.22 AS builder
WORKDIR /build
COPY go.mod go.sum ./
RUN go mod download
COPY . .
2023-09-09 19:06:59 +02:00
RUN CGO_ENABLED=0 go build -buildvcs=false ./cmd/mc-router
FROM scratch
ENTRYPOINT ["/mc-router"]
COPY --from=builder /build/mc-router /mc-router