Update apk install pattern to use `--no-cache'

This way there's no need to delete `/var/cache/apk`, leading to a cleaner Dockerfile.
Supported since alpine 3.3, hence the change from 3.1.
This commit is contained in:
Marc Cornellà 2016-06-05 16:06:37 +02:00
parent 29d564c94c
commit cae3a7cdb6
1 changed files with 2 additions and 2 deletions

View File

@ -11,8 +11,8 @@
Use like you would any other base image: Use like you would any other base image:
```dockerfile ```dockerfile
FROM alpine:3.1 FROM alpine:3.3
RUN apk add --update mysql-client && rm -rf /var/cache/apk/* RUN apk add --no-cache mysql-client
ENTRYPOINT ["mysql"] ENTRYPOINT ["mysql"]
``` ```