mirror of
https://github.com/outbackdingo/ghorg.git
synced 2026-01-27 18:18:58 +00:00
Fix for Dockerfile smell DL3059 (#300)
Signed-off-by: Giovanni Rosa <g.rosa1@studenti.unimol.it>
This commit is contained in:
@@ -7,8 +7,8 @@ WORKDIR /go/src/github.com/gabrie30/ghorg
|
||||
COPY . .
|
||||
|
||||
# Fetching dependencies and build the app
|
||||
RUN go get -d -v ./...
|
||||
RUN CGO_ENABLED=0 go build -a --mod vendor -o ghorg .
|
||||
RUN go get -d -v ./... \
|
||||
&& CGO_ENABLED=0 go build -a --mod vendor -o ghorg .
|
||||
|
||||
# Needed for reclone command
|
||||
RUN cp ./ghorg /go/bin/ghorg
|
||||
|
||||
Reference in New Issue
Block a user