Skip to content

Commit e6ead3f

Browse files
committed
build: minor changes to the Alpine Dockerfile
1 parent 47a32e9 commit e6ead3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ WORKDIR /build
77

88
# Install the dependencies
99
COPY . .
10-
RUN go mod download -json
10+
RUN go mod download
1111

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

1515
FROM alpine:3.13
1616

0 commit comments

Comments
 (0)