Dockerfile 590 B

1234567891011121314151617181920
  1. FROM registry.persagy.com/base/centos:v-jdk1.8
  2. ARG WORKER_HOME
  3. ENV TZ=Asia/Shanghai
  4. ENV JAVA_OPTS -XX:+UseContainerSupport -XX:MaxRAMPercentage=75.0 -XX:InitialRAMPercentage=75.0 -XX:MinRAMPercentage=75.0
  5. RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezon
  6. RUN yum install -y unzip zip wget telnet tzdata
  7. RUN mkdir -p $WORKER_HOME/config
  8. COPY *.jar $WORKER_HOME/
  9. COPY entrypoint.sh $WORKER_HOME/
  10. RUN chmod -R 777 $WORKER_HOME/ && chmod -R 777 /mnt/ && chmod -R 777 /usr/ && chmod -R 777 /etc/
  11. WORKDIR $WORKER_HOME
  12. RUN ls
  13. ENTRYPOINT ["sh","./entrypoint.sh"]