Created
June 10, 2018 10:03
-
-
Save ysrotciv/3785c97d466a684aadd4744860c809a8 to your computer and use it in GitHub Desktop.
Optimization of common Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM java:openjdk-8u111-jre-alpine | |
| COPY repositories /etc/apk/ | |
| RUN apk update && apk add tzdata && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ | |
| && echo "Asia/Shanghai" > /etc/timezone && apk del tzdata |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://mirrors.ustc.edu.cn/alpine/latest-stable/main | |
| https://mirrors.ustc.edu.cn/alpine/latest-stable/community |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment