diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -14,11 +14,13 @@ COPY . /app ENV DJANGO_SETTINGS_MODULE=conf.settings.prod +RUN mkdir -p /app/static/css /app/static/js /app/static/img + # Install Python dependencies RUN pip install -U "pip>=24.0.0" && \ - pip install -r requirements.txt - -RUN mkdir -p /app/static/css /app/static/js /app/static/img + pip install -r requirements.txt && \ + python manage.py collectstatic --noinput && \ + python manage.py createsuperuser --noinput # Switch to non-root user USER 1001 |