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