From b356a95ca40790bb74e2eea1ad1b8f7844564b6f Mon Sep 17 00:00:00 2001 From: Celestino Rey Date: Wed, 8 Jan 2025 20:41:00 +0100 Subject: [PATCH] =?UTF-8?q?Pongo=20usuario=20de=20trabajo=20en=20Dockerfil?= =?UTF-8?q?e,=20versi=C3=B3n=205?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index cdbd7bd..95dfe42 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,17 +8,17 @@ USER 0 # Install the dependencies RUN apk add sqlite +RUN pip install -U "pip>=19.3.1" && \ + pip install -r requirements.txt && \ +# python manage.py collectstatic --noinput && \ + python manage.py migrate + RUN mkdir -p $APP_HOME WORKDIR $APP_HOME ADD . $APP_HOME RUN chown -R 1000770000:0 ./ USER 1000770000 -RUN pip install -U "pip>=19.3.1" && \ - pip install -r requirements.txt && \ -# python manage.py collectstatic --noinput && \ - python manage.py migrate - EXPOSE 8080 # Run the application CMD python manage.py runserver 0.0.0.0:8080