Use --no-cache with apk to skip manual apk update (#689)

Save one step, also prevent additional local cache files need cleaning.
This commit is contained in:
Peter Dave Hello 2021-03-15 18:51:33 +08:00 committed by GitHub
parent ecad34091e
commit 9d1e2f3795
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,7 @@ FROM golang:${GOVERSION}-alpine AS build
WORKDIR /go/src/crowdsec
RUN apk update && apk add git jq gcc libc-dev make bash gettext
RUN apk add --no-cache git jq gcc libc-dev make bash gettext
COPY . .