Fix for Dockerfile smell DL3059 (#300)

Signed-off-by: Giovanni Rosa <g.rosa1@studenti.unimol.it>
This commit is contained in:
Giovanni Rosa
2023-04-14 17:13:04 +02:00
committed by GitHub
parent 3e126e751d
commit 3d490a713e

View File

@@ -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