Skip to content

Instantly share code, notes, and snippets.

@ysrotciv
Created June 10, 2018 10:03
Show Gist options
  • Select an option

  • Save ysrotciv/3785c97d466a684aadd4744860c809a8 to your computer and use it in GitHub Desktop.

Select an option

Save ysrotciv/3785c97d466a684aadd4744860c809a8 to your computer and use it in GitHub Desktop.
Optimization of common Dockerfile
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
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