Browse Source

Pongo usuario de trabajo en Dockerfile, versión 5

main
Celestino Rey 11 months ago
parent
commit
b356a95ca4
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      Dockerfile

+ 5
- 5
Dockerfile View File

@ -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

Loading…
Cancel
Save