From cae3a7cdb6bd544747cdd2ebe20bc8a870fd35de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Cornell=C3=A0?= Date: Sun, 5 Jun 2016 16:06:37 +0200 Subject: [PATCH] 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. --- alpine/content.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alpine/content.md b/alpine/content.md index 172349691..8bfa36bf9 100644 --- a/alpine/content.md +++ b/alpine/content.md @@ -11,8 +11,8 @@ Use like you would any other base image: ```dockerfile -FROM alpine:3.1 -RUN apk add --update mysql-client && rm -rf /var/cache/apk/* +FROM alpine:3.3 +RUN apk add --no-cache mysql-client ENTRYPOINT ["mysql"] ```