From 98df36a1fc887bb6d868e57cecf321981e3269ef Mon Sep 17 00:00:00 2001 From: tcely Date: Fri, 30 May 2025 02:18:01 -0400 Subject: [PATCH] Fail the build rather than hiding the file that is in a lower layer --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 118eda78..314eb98d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -480,7 +480,7 @@ COPY tubesync/tubesync/local_settings.py.container /app/tubesync/local_settings. # Build app RUN set -x && \ # Make absolutely sure we didn't accidentally bundle a SQLite dev database - rm -rf /app/db.sqlite3 && \ + test '!' -e /app/db.sqlite3 && \ # Run any required app commands /usr/bin/python3 -B /app/manage.py compilescss && \ /usr/bin/python3 -B /app/manage.py collectstatic --no-input --link && \