Remove any existing files before copying the new ones.

This commit is contained in:
Hyperling 2023-07-06 06:50:46 -07:00
parent cf73304bfe
commit 81f8817e96

View File

@ -4,6 +4,9 @@
FROM nginx
# Clear old configurations.
RUN rm -rfv /etc/nginx/conf.d/*
# Add all the configuration files to the environment.
COPY ./config/nginx.conf /etc/nginx/nginx.conf
COPY ./config/conf.d/*.* /etc/nginx/conf.d/