Dockerfile 455 B

123456789101112131415161718192021
  1. FROM openjdk:8-slim
  2. LABEL maintainer="ThinkGem@163.com"
  3. ENV TZ "Asia/Shanghai"
  4. ENV LANG C.UTF-8
  5. VOLUME /tmp
  6. VOLUME /data
  7. WORKDIR /app
  8. #RUN mkdir WEB-INF
  9. #ADD jeesite.lic ./WEB-INF
  10. ADD ./maven/web.war ./app.war
  11. #ENV JAVA_OPTS "$JAVA_OPTS -Xms256m -Xmx1024m"
  12. ENV JAVA_OPTS "$JAVA_OPTS -Dspring.profiles.active=prod"
  13. ENTRYPOINT jar -xvf app.war && rm app.war && cd WEB-INF && sh startup.sh
  14. EXPOSE 8980
  15. #docker run -p 8980:8980 thinkgem/jeesite-web:4.4