1
0
Эх сурвалжийг харах

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.
Marc Cornellà 9 жил өмнө
parent
commit
cae3a7cdb6
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      alpine/content.md

+ 2 - 2
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"]
 ```