Dockerfile_data 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # VERSION 1.0
  2. # pull:
  3. # test env: reg0.svicloud.com/app/wisecloud/cas/web-data:v0.1
  4. # pro env: reg1.svicloud.com/app/wisecloud/cas/web-data:v0.1
  5. # build:
  6. # test env: docker build -f Dockerfile_data -t reg0.svicloud.com/app/wisecloud/cas/web-data:v0.1 .
  7. # test env: docker build -f Dockerfile_data -t reg1.svicloud.com/app/wisecloud/cas/web-data:v0.1 .
  8. FROM registry.9418.club/os/svi-centos:latest
  9. MAINTAINER dongcj "dongchaojun@svi-tech.com.cn"
  10. ENV MODULE_HOME /opt/wisecloud/cas/cas_web
  11. # creat and enter to MODULE_HOME
  12. WORKDIR ${MODULE_HOME}
  13. # copy app to MODULE_HOME
  14. COPY software software
  15. COPY start.sh .
  16. COPY version .
  17. COPY image_version .
  18. # chmod to startup.sh
  19. RUN chmod +x start.sh
  20. # untar app to MODULE_HOME
  21. RUN tar -xzvf software/nginx.tar.gz -C .
  22. # cp web source to nginx
  23. COPY software/src nginx/html/src
  24. RUN yes | cp nginx/conf/docker_nginx.conf nginx/conf/nginx.conf
  25. # volume used by cas server
  26. VOLUME ${MODULE_HOME}
  27. # command run at startup
  28. CMD echo "started successful. this container will only start once"