Dockerfile 534 B

123456789101112131415
  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/ibms-data-sdk.jar
  8. COPY *.xlsx $WORKER_HOME/
  9. COPY *.xml $WORKER_HOME/
  10. COPY *.json $WORKER_HOME/
  11. COPY entrypoint.sh $WORKER_HOME/
  12. RUN pwd
  13. WORKDIR $WORKER_HOME
  14. RUN ls
  15. ENTRYPOINT ["sh","./entrypoint.sh"]