mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-12-08 14:22:40 +01:00
Use `apk --no-cache' on alpine images (#144)
This enables us to remove the following patterns that required a `rm -rf /var/cache/apk`: - `apk update` - `apk add --update` - `apk add --update-cache` Supported since alpine 3.3.
This commit is contained in:
committed by
Jess Frazelle
parent
5a6ef53d6a
commit
7ac4881609
@@ -11,8 +11,8 @@ RUN buildDeps=' \
|
||||
zip \
|
||||
' \
|
||||
set -x \
|
||||
&& apk --update add $buildDeps \
|
||||
--update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/community/ \
|
||||
&& apk --no-cache add $buildDeps \
|
||||
--repository http://dl-3.alpinelinux.org/alpine/edge/community/ \
|
||||
&& git clone --depth 1 https://github.com/facebook/buck.git /buck \
|
||||
&& ( \
|
||||
cd /buck \
|
||||
@@ -27,8 +27,7 @@ RUN buildDeps=' \
|
||||
&& buck build gitiles-dev:dev \
|
||||
) \
|
||||
&& apk del $buildDeps \
|
||||
&& rm -rf /buck \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
&& rm -rf /buck
|
||||
|
||||
COPY start.sh /start.sh
|
||||
|
||||
|
||||
Reference in New Issue
Block a user