Dockerfile 477 B

12345678910111213
  1. #FROM openjdk:8-jdk-alpine 文件下载会出现空指针错误
  2. FROM java:8
  3. ARG WORKER_HOME
  4. RUN apt-get install -y --no-install-recommends tzdata && rm -rf /var/lib/apt/lists/*
  5. RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' > /etc/timezone
  6. RUN mkdir -p $WORKER_HOME/config
  7. COPY *.jar $WORKER_HOME/
  8. COPY entrypoint.sh $WORKER_HOME/
  9. COPY *.yml $WORKER_HOME/config/
  10. #EXPOSE 9931
  11. WORKDIR $WORKER_HOME
  12. RUN ls
  13. ENTRYPOINT ["sh","./entrypoint.sh"]