# VERSION 1.0 # pull: # test env: reg0.svicloud.com/app/wisecloud/authcenter/web-data:v0.1 # pro env: reg1.svicloud.com/app/wisecloud/authcenter/web-data:v0.1 # build: # test env: docker build -f Dockerfile_data -t reg0.svicloud.com/app/wisecloud/authcenter/web-data:v0.1 . # test env: docker build -f Dockerfile_data -t reg1.svicloud.com/app/wisecloud/authcenter/web-data:v0.1 . FROM registry.9418.club/os/svi-centos:latest MAINTAINER dongcj "dongchaojun@svi-tech.com.cn" ENV MODULE_HOME /opt/wisecloud/authcenter/authcenter_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/src nginx/html/src RUN yes | cp nginx/conf/docker_nginx.conf nginx/conf/nginx.conf # volume used by authcenter server VOLUME ${MODULE_HOME} # command run at startup CMD echo "started successful. this container will only start once"