123456789101112131415161718192021222324252627282930313233343536373839404142 |
- # VERSION 1.0
- # pull:
- # test env: reg0.svicloud.com/app/wisecloud/ues/web-data:v0.1
- # pro env: reg1.svicloud.com/app/wisecloud/ues/web-data:v0.1
- # build:
- # test env: docker build -f Dockerfile_data -t reg0.svicloud.com/app/wisecloud/ues/web-data:v0.1 .
- # test env: docker build -f Dockerfile_data -t reg1.svicloud.com/app/wisecloud/ues/web-data:v0.1 .
- FROM registry.9418.club/os/svi-centos:latest
- MAINTAINER dongcj "dongchaojun@svi-tech.com.cn"
- ENV MODULE_HOME /opt/wisecloud/ues/ues_web
- # creat and enter to MODULE_HOME
- WORKDIR ${MODULE_HOME}
- # copy app to MODULE_HOME
- COPY software software
- COPY start.sh .
- COPY version .
- COPY image_version .
- # chmod to startup.sh
- RUN chmod +x start.sh
- # untar app to MODULE_HOME
- RUN tar -xzvf software/nginx.tar.gz -C .
- # cp web source to nginx
- COPY software/dist nginx/html/dist
- RUN yes | cp nginx/conf/docker_nginx.conf nginx/conf/nginx.conf
- # volume used by ues server
- VOLUME ${MODULE_HOME}
- # command run at startup
- CMD echo "started successful. this container will only start once"
|