mirror of
https://github.com/securego/gosec.git
synced 2024-11-05 11:35:51 +00:00
Fix for Dockerfile smell DL3059 (#951)
Signed-off-by: Giovanni Rosa <g.rosa1@studenti.unimol.it>
This commit is contained in:
parent
2ee3213dc1
commit
7df7baa3f0
1 changed files with 4 additions and 4 deletions
|
@ -1,11 +1,11 @@
|
||||||
ARG GO_VERSION
|
ARG GO_VERSION
|
||||||
FROM golang:${GO_VERSION}-alpine AS builder
|
FROM golang:${GO_VERSION}-alpine AS builder
|
||||||
RUN apk add --no-cache ca-certificates make git curl gcc libc-dev
|
RUN apk add --no-cache ca-certificates make git curl gcc libc-dev \
|
||||||
RUN mkdir -p /build
|
&& mkdir -p /build
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
COPY . /build/
|
COPY . /build/
|
||||||
RUN go mod download
|
RUN go mod download \
|
||||||
RUN make build-linux
|
&& make build-linux
|
||||||
|
|
||||||
FROM golang:${GO_VERSION}-alpine
|
FROM golang:${GO_VERSION}-alpine
|
||||||
RUN apk add --no-cache ca-certificates bash git gcc libc-dev openssh
|
RUN apk add --no-cache ca-certificates bash git gcc libc-dev openssh
|
||||||
|
|
Loading…
Reference in a new issue