Dockerfile 718 B

1234567891011121314151617181920
  1. FROM registry.persagy.com/base/centos:v-jdk1.8
  2. ENV TZ=Asia/Shanghai
  3. ENV JAVA_OPTS -XX:+UseContainerSupport -XX:MaxRAMPercentage=75.0 -XX:InitialRAMPercentage=75.0 -XX:MinRAMPercentage=75.0
  4. RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezon
  5. #增加一个arthas的包,方便应用排查问题
  6. RUN yum install -y unzip zip wget telnet tzdata
  7. COPY --from=hengyunabc/arthas:latest /opt/arthas /opt/arthas
  8. ARG CONTAINER_HOME
  9. ARG WORKER_HOME
  10. RUN mkdir -p $WORKER_HOME/config
  11. COPY *.jar $WORKER_HOME/
  12. COPY entrypoint.sh $WORKER_HOME/
  13. COPY *.yml $WORKER_HOME/config/
  14. COPY *.jks $WORKER_HOME/config/
  15. COPY *.json $WORKER_HOME/config/
  16. WORKDIR $WORKER_HOME
  17. RUN ls
  18. ENTRYPOINT ["sh","./entrypoint.sh"]