Skip to content

Commit

Permalink
try chown recursively in prod?
Browse files Browse the repository at this point in the history
  • Loading branch information
jvacek committed May 22, 2023
1 parent 4d8bbf7 commit bb32f05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compose/production/django/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ ENV BUILD_ENV ${BUILD_ENVIRONMENT}
WORKDIR ${APP_HOME}

RUN addgroup --system django \
&& adduser --system --ingroup django django
&& adduser --system --ingroup django django


# Install required system dependencies
Expand Down Expand Up @@ -84,7 +84,7 @@ RUN chmod +x /start-flower
COPY --chown=django:django . ${APP_HOME}

# make django owner of the WORKDIR directory as well.
RUN chown django:django ${APP_HOME}
RUN chown -r django:django ${APP_HOME}

USER django

Expand Down

0 comments on commit bb32f05

Please sign in to comment.