Skip to content

Commit

Permalink
Merge pull request #105 from stuartmaxwell:more-docker-tweaks
Browse files Browse the repository at this point in the history
Ensure scripts are executable
  • Loading branch information
stuartmaxwell authored Oct 7, 2024
2 parents ec36526 + 09b6cc2 commit c2a92e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand All @@ -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
Expand Down
Empty file modified backup.sh
100644 → 100755
Empty file.

0 comments on commit c2a92e2

Please sign in to comment.