Skip to content

Commit

Permalink
♻️ jre to jdk
Browse files Browse the repository at this point in the history
  • Loading branch information
Liloupar committed Nov 25, 2019
1 parent c3d6283 commit b8d3a7d
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,20 @@ WORKDIR /app
RUN gradle assemble --info

FROM openjdk:8-jdk-alpine
# Install base packages
RUN apk update
RUN apk upgrade
RUN apk add ca-certificates && update-ca-certificates
# Change TimeZone
RUN apk add --update tzdata
# 时区
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo Asia/Shanghai > /etc/timezone \
&& dpkg-reconfigure -f noninteractive tzdata
ENV TZ=Asia/Shanghai
# Clean APK cache
RUN rm -rf /var/cache/apk/*

#RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
# && echo Asia/Shanghai > /etc/timdezone \
# && dpkg-reconfigure -f noninteractive tzdata

EXPOSE 9000

Expand Down

0 comments on commit b8d3a7d

Please sign in to comment.