Verify Nginx config at build time

This commit is contained in:
Quentin McGaw (desktop) 2021-08-02 10:40:10 -04:00
parent 3751e46eed
commit d638b8f951

View File

@ -47,6 +47,7 @@ EXPOSE 8000/tcp
RUN touch /run/nginx.pid && \ RUN touch /run/nginx.pid && \
chown www-data /run/nginx.pid chown www-data /run/nginx.pid
COPY --chown=www-data docker/nginx.conf /etc/nginx/nginx.conf COPY --chown=www-data docker/nginx.conf /etc/nginx/nginx.conf
RUN nginx -t
# Create end user directory # Create end user directory
RUN mkdir -p /2fauth && \ RUN mkdir -p /2fauth && \