From 207cd24edb25cd15b0f3a2705302d056fdacc77a Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Fri, 15 Jan 2021 06:48:02 +0800 Subject: [PATCH] Unify/sync apk index cache control in Dockerfile (#1352) The second stage is using a single `apk` command with `--no-cache` which is better. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ba83fde7..3b53c752 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM alpine AS builder COPY . /go/src/github.com/42wim/matterbridge -RUN apk update && apk add go git gcc musl-dev \ +RUN apk --no-cache add go git gcc musl-dev \ && cd /go/src/github.com/42wim/matterbridge \ && export GOPATH=/go \ && go get \