Dockerfile 597 B

1234567891011121314151617181920212223242526
  1. FROM java:8-jre
  2. MAINTAINER fanzhongyuan<fanzhongyuan@persagy.com>
  3. LABEL tier backend
  4. LABEL product saas
  5. LABEL project saas-account
  6. LABEL name 账号服务
  7. ENV JAVA_OPTS -Dfile.encoding=UTF-8 -Xms1024m -Xmx1024m
  8. ENV TZ Asia/Shanghai
  9. ARG WORKER_HOME
  10. RUN apt-get install -y --no-install-recommends tzdata && rm -rf /var/lib/apt/lists/*
  11. RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' > /etc/timezone
  12. RUN mkdir -p $WORKER_HOME/config
  13. COPY *.jar $WORKER_HOME/
  14. COPY entrypoint.sh $WORKER_HOME/
  15. WORKDIR $WORKER_HOME
  16. RUN ls
  17. ENTRYPOINT ["sh","./entrypoint.sh"]