Skip to content

Commit

Permalink
Merge pull request #540 from nginx-proxy/cgo
Browse files Browse the repository at this point in the history
build: disable cgo on Debian image
  • Loading branch information
buchdag authored Jul 12, 2023
2 parents 78ace42 + 52a8f5a commit c2895e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile.debian
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ COPY . .
RUN go mod download

# Build the docker-gen executable
RUN GOOS=linux go build -ldflags "-X main.buildVersion=${DOCKER_GEN_VERSION}" -o docker-gen ./cmd/docker-gen
RUN GOOS=linux CGO_ENABLED=0 go build -ldflags "-X main.buildVersion=${DOCKER_GEN_VERSION}" -o docker-gen ./cmd/docker-gen

FROM debian:12.0-slim

Expand Down

0 comments on commit c2895e1

Please sign in to comment.