Commit d2ae3820 by 丁伟峰

强制时区

1 parent 146ded71
Showing with 4 additions and 2 deletions
...@@ -3,9 +3,12 @@ FROM openjdk:11-jre-slim as builder ...@@ -3,9 +3,12 @@ FROM openjdk:11-jre-slim as builder
LABEL author="yuluo" \ LABEL author="yuluo" \
email="yuluo829@aliyun.com" email="yuluo829@aliyun.com"
ENV TZ=Asia/Shanghai
RUN echo -e "${TZ}" > /etc/timezone && ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime
ADD ./project-order/target/project-order-*.jar /app.jar ADD ./project-order/target/project-order-*.jar /app.jar
RUN sh -c 'touch /app.jar' RUN sh -c 'touch /app.jar'
EXPOSE 8013 EXPOSE 8013
ENTRYPOINT ["java", "-jar","/app.jar"] ENTRYPOINT ["java", "-jar","/app.jar"]
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!