Dockerfile 616 B

123456789101112131415161718192021222324252627
  1. FROM java:8-jre
  2. MAINTAINER zhangqiankun<zhangqiankun@persagy.com>
  3. LABEL tier backend
  4. LABEL product integrated
  5. LABEL project calendar-center
  6. LABEL name 工作历
  7. ENV JAVA_OPTS -Dfile.encoding=UTF-8 -Xms2048m -Xmx2048m
  8. ENV TZ Asia/Shanghai
  9. ARG WORKER_HOME
  10. RUN apt-get install -y --no-install-recommends tzdata && rm -rf /var/lib/apt/lists/*
  11. RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' > /etc/timezone
  12. RUN mkdir -p $WORKER_HOME/config
  13. COPY *.jar $WORKER_HOME/
  14. COPY entrypoint.sh $WORKER_HOME/
  15. #EXPOSE 9971
  16. WORKDIR $WORKER_HOME
  17. RUN ls
  18. ENTRYPOINT ["sh","./entrypoint.sh"]