You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
420 B
15 lines
420 B
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;"
|
|
|