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:
Marc Cornellà
2016-06-06 05:40:20 +02:00
committed by Jess Frazelle
parent 5a6ef53d6a
commit 7ac4881609
32 changed files with 69 additions and 109 deletions

View File

@@ -9,7 +9,7 @@
FROM alpine
MAINTAINER Jessica Frazelle <jess@docker.com>
RUN apk update && apk add \
RUN apk --no-cache add \
autoconf \
automake \
build-base \
@@ -17,7 +17,6 @@ RUN apk update && apk add \
libpng-dev \
nasm \
nodejs \
&& rm -rf /var/cache/apk/* \
&& npm install --global imagemin-cli
CMD [ "imagemin", "--help" ]