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