Dockerfile 788 B

12345678910111213141516171819202122232425262728293031
  1. FROM nginx:1.16.1
  2. MAINTAINER lijie<lijie@persagy.com>
  3. ARG PROGRAM_ID
  4. ARG PORT_LOCAL
  5. LABEL tier=frontend
  6. LABEL product=adm_comp
  7. LABEL project=persagy
  8. LABEL name=$PROGRAM_ID
  9. #ENV JAVA_OPTS -Dfile.encoding=UTF-8 -Xms300m -Xmx1024m
  10. ENV TZ Asia/Shanghai
  11. ENV WORKER_HOME /usr/persagy/saas-web
  12. ENV CONFIG_PATH /data/SpringCloud
  13. ENV PROGRAM_NAME $PROGRAM_ID
  14. WORKDIR $WORKER_HOME
  15. RUN sed -i s@/deb.debian.org/@/mirrors.aliyun.com/@g /etc/apt/sources.list \
  16. && apt-get update \
  17. && apt-get install -y --no-install-recommends tzdata unzip \
  18. && apt-get autoclean \
  19. && apt-get clean \
  20. && rm -rf /var/lib/apt/lists/*
  21. RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' > /etc/timezone
  22. COPY *.zip $WORKER_HOME/
  23. RUN unzip *.zip
  24. RUN rm -rf ./*.zip