Check the copied nginx configuration

Checking before the copy doesn't help.

Fixes #804
This commit is contained in:
tcely 2025-03-12 13:02:55 -04:00 committed by GitHub
parent 18dca06321
commit ef5b939caf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -352,8 +352,6 @@ COPY tubesync/tubesync/local_settings.py.container /app/tubesync/local_settings.
RUN set -x && \ RUN set -x && \
# Make absolutely sure we didn't accidentally bundle a SQLite dev database # Make absolutely sure we didn't accidentally bundle a SQLite dev database
rm -rf /app/db.sqlite3 && \ rm -rf /app/db.sqlite3 && \
# Check nginx configuration
nginx -t && \
# Run any required app commands # Run any required app commands
/usr/bin/python3 -B /app/manage.py compilescss && \ /usr/bin/python3 -B /app/manage.py compilescss && \
/usr/bin/python3 -B /app/manage.py collectstatic --no-input --link && \ /usr/bin/python3 -B /app/manage.py collectstatic --no-input --link && \
@ -373,6 +371,9 @@ RUN set -x && \
# Copy root # Copy root
COPY config/root / COPY config/root /
# Check nginx configuration copied from config/root/etc
RUN set -x && nginx -t
# patch background_task # patch background_task
COPY patches/background_task/ \ COPY patches/background_task/ \
/usr/local/lib/python3/dist-packages/background_task/ /usr/local/lib/python3/dist-packages/background_task/