Unify/sync apk index cache control in Dockerfile (#1352)

The second stage is using a single `apk` command with `--no-cache` which is better.
This commit is contained in:
Peter Dave Hello 2021-01-15 06:48:02 +08:00 committed by GitHub
parent b039da1eba
commit 207cd24edb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
FROM alpine AS builder FROM alpine AS builder
COPY . /go/src/github.com/42wim/matterbridge 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 \ && cd /go/src/github.com/42wim/matterbridge \
&& export GOPATH=/go \ && export GOPATH=/go \
&& go get \ && go get \