From 7df7baa3f0ee4eddf12e3221492f90cf01fed04a Mon Sep 17 00:00:00 2001 From: Giovanni Rosa Date: Fri, 14 Apr 2023 13:46:24 +0200 Subject: [PATCH] Fix for Dockerfile smell DL3059 (#951) Signed-off-by: Giovanni Rosa --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index b57c981..1bf94da 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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