Skip to content

Commit

Permalink
build: git safe to /app
Browse files Browse the repository at this point in the history
  • Loading branch information
terovirtanen committed Oct 7, 2024
1 parent 3d709b5 commit 26a8098
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,8 @@ RUN SECRET_KEY="only-used-for-collectstatic" python manage.py collectstatic --no
FROM appbase as production
# ==============================

# fatal: detected dubious ownership in repository at '/app'
RUN git config --global --add safe.directory /app

COPY --from=staticbuilder --chown=1000:0 /var/static /var/static
COPY --chown=1000:0 . /app/

0 comments on commit 26a8098

Please sign in to comment.