mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-07-11 00:22:29 +03:00
Fix media folder permissions prod dockerfile (#5831)
This commit is contained in:
parent
f7e1091764
commit
8a7b5473ee
|
@ -119,6 +119,11 @@ COPY --from=client-builder --chown=django:django ${APP_HOME} ${APP_HOME}
|
|||
COPY --chown=django:django . ${APP_HOME}
|
||||
{%- endif %}
|
||||
|
||||
{%- if cookiecutter.cloud_provider == 'None' %}
|
||||
# explicitly create the media folder before changing ownership below
|
||||
RUN mkdir -p ${APP_HOME}/{{ cookiecutter.project_slug }}/media
|
||||
{%- endif %}
|
||||
|
||||
# make django owner of the WORKDIR directory as well.
|
||||
RUN chown -R django:django ${APP_HOME}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user