FROM nginx:alpine MAINTAINER wuyunfeng RUN mkdir -p /app/ COPY ./dist /app/ COPY ./nginx.conf /etc/nginx/nginx.conf EXPOSE 443 80 ENV serverUrl=http://172.28.100.100:8005 deviceUrl=http://172.28.100.100:8006 language=zh showDate=true timeZone=Asia/Shanghai CMD sh -c "sed -i -e \"s~^.*serverUrl.*$~serverUrl:'$serverUrl',~;s~^.*language.*$~language:'$language',~;s~^.*deviceUrl.*$~deviceUrl:'$deviceUrl',~;s~^.*showDate.*$~showDate:$showDate,~;s~^.*timeZone.*$~timeZone:'$timeZone'~\" /app/domain.js; exec nginx -g \"daemon off;\""