mirror of
https://github.com/Hopiu/cookiecutter-django.git
synced 2026-05-11 06:03:09 +00:00
Speed up django image build process, and reduce its size (#2353)
Speed up django image build process, and reduce its size
This commit is contained in:
commit
9fa80f80c9
1 changed files with 2 additions and 4 deletions
|
|
@ -57,13 +57,11 @@ RUN chmod +x /start-flower
|
|||
{%- endif %}
|
||||
|
||||
{%- if cookiecutter.js_task_runner == 'Gulp' %}
|
||||
COPY --from=client-builder /app /app
|
||||
COPY --from=client-builder --chown=django:django /app /app
|
||||
{% else %}
|
||||
COPY . /app
|
||||
COPY --chown=django:django . /app
|
||||
{%- endif %}
|
||||
|
||||
RUN chown -R django /app
|
||||
|
||||
USER django
|
||||
|
||||
WORKDIR /app
|
||||
|
|
|
|||
Loading…
Reference in a new issue