From 09b6cc23f65a893e0faf6ebb9480390c96441ecc Mon Sep 17 00:00:00 2001 From: Stuart Maxwell Date: Tue, 8 Oct 2024 02:07:56 +1300 Subject: [PATCH] Ensure scripts are executable --- Dockerfile | 5 +++-- backup.sh | 0 2 files changed, 3 insertions(+), 2 deletions(-) mode change 100644 => 100755 backup.sh diff --git a/Dockerfile b/Dockerfile index 5ecadb8..e1bf22a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,11 +21,9 @@ ENV UV_LINK_MODE=copy \ # Add the backup script COPY backup.sh /app/ -RUN chmod +x /app/backup.sh # Add the entrypoint script COPY entrypoint.sh /app/ -RUN chmod +x /app/entrypoint.sh # Set up the environment COPY pyproject.toml /app/ @@ -37,6 +35,9 @@ RUN uv sync --locked --no-dev COPY . /app RUN mkdir /app/staticfiles +RUN chmod +x /app/backup.sh +RUN chmod +x /app/entrypoint.sh + # Switching to a non-root user RUN useradd appuser && chown -R appuser /app USER appuser diff --git a/backup.sh b/backup.sh old mode 100644 new mode 100755