mirror of
https://github.com/itzg/mc-router.git
synced 2024-11-24 11:55:24 +01:00
14 lines
244 B
Docker
14 lines
244 B
Docker
FROM golang:1.20 as builder
|
|
|
|
WORKDIR /build
|
|
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
|
|
COPY . .
|
|
RUN CGO_ENABLED=0 go build -buildvcs=false ./cmd/mc-router
|
|
|
|
FROM scratch
|
|
ENTRYPOINT ["/mc-router"]
|
|
COPY --from=builder /build/mc-router /mc-router
|