Skip to content

Commit

Permalink
Fix Dockerfile alpine build
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Wilder committed Apr 6, 2021
1 parent fc48d7e commit e877b8f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ RUN tar -xzf sources.tar.gz && \

# Install the dependencies and make the docker-gen executable
WORKDIR /go/src/github.com/jwilder/docker-gen
RUN go get -v ./... && \
CGO_ENABLED=0 GOOS=linux go build -ldflags "-X main.buildVersion=${VERSION}" ./cmd/docker-gen
RUN CGO_ENABLED=0 go build -ldflags "-X main.buildVersion=${VERSION}" ./cmd/docker-gen

FROM alpine:latest
LABEL maintainer="Jason Wilder <mail@jasonwilder.com>"
Expand Down

0 comments on commit e877b8f

Please sign in to comment.