mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-07-11 08:32:21 +03:00
Speed up django image build process, and reduce its size
This commit is contained in:
parent
4259af3fd8
commit
a88b6b04b6
|
@ -57,13 +57,11 @@ RUN chmod +x /start-flower
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
{%- if cookiecutter.js_task_runner == 'Gulp' %}
|
{%- if cookiecutter.js_task_runner == 'Gulp' %}
|
||||||
COPY --from=client-builder /app /app
|
COPY --from=client-builder --chown=django:django /app /app
|
||||||
{% else %}
|
{% else %}
|
||||||
COPY . /app
|
COPY --chown=django:django . /app
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
RUN chown -R django /app
|
|
||||||
|
|
||||||
USER django
|
USER django
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
Loading…
Reference in New Issue
Block a user