Dockerfile 445 B

123456789101112
  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. #EXPOSE 9931
  10. WORKDIR $WORKER_HOME
  11. RUN ls
  12. ENTRYPOINT ["sh","./entrypoint.sh"]