Skip to content

Commit

Permalink
Fix for Dockerfile smell DL3059 (#951)
Browse files Browse the repository at this point in the history
Signed-off-by: Giovanni Rosa <g.rosa1@studenti.unimol.it>
  • Loading branch information
grosa1 committed Apr 14, 2023
1 parent 2ee3213 commit 7df7baa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
ARG GO_VERSION
FROM golang:${GO_VERSION}-alpine AS builder
RUN apk add --no-cache ca-certificates make git curl gcc libc-dev
RUN mkdir -p /build
RUN apk add --no-cache ca-certificates make git curl gcc libc-dev \
&& mkdir -p /build
WORKDIR /build
COPY . /build/
RUN go mod download
RUN make build-linux
RUN go mod download \
&& make build-linux

FROM golang:${GO_VERSION}-alpine
RUN apk add --no-cache ca-certificates bash git gcc libc-dev openssh
Expand Down

0 comments on commit 7df7baa

Please sign in to comment.