5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-09-19 01:49:35 +00:00

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
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 \