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