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