FROM nginx MAINTAINER zhangerbo@galaxydc.com.cn ENV RUN_USER nginx ENV RUN_GROUP nginx ENV DATA_DIR /data/web ENV LOG_DIR /data/log/nginx RUN mkdir /data/log/nginx -p RUN mkdir /opt/nginx-html/dist -p RUN mkdir /etc/nginx/logs -p RUN chown nginx.nginx -R /data/log/nginx ADD dist /opt/nginx-html/dist ADD nginx.conf /etc/nginx/nginx.conf RUN rm /etc/nginx/conf.d/default.conf EXPOSE 80 ENTRYPOINT nginx -g "daemon off;"