13 lines
384 B
Plaintext
13 lines
384 B
Plaintext
FROM nginx
|
|
|
|
# remove the config
|
|
RUN rm /etc/nginx/conf.d/default.conf && \
|
|
rm /etc/nginx/nginx.conf && \
|
|
mkdir -p /usr/share/nginx/web && \
|
|
mkdir -p /usr/share/nginx/admin
|
|
|
|
# copy the config and web codes
|
|
COPY ./nginx.conf /etc/nginx/
|
|
COPY ./web/build/ /usr/share/nginx/web
|
|
COPY ./admin/ /usr/share/nginx/admin
|
|
CMD ['nginx', '-c /etc/nginx/nginx.conf', '-g "daemon off;"'] |