Browse Source

Pongo usuario de trabajo en Dockerfile, versión 6

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

+ 3
- 3
Dockerfile View File

@ -2,6 +2,7 @@ FROM python:3.14.0a3-alpine3.20
# Add application sources with correct permissions for OpenShift # Add application sources with correct permissions for OpenShift
ENV APP_HOME=/app ENV APP_HOME=/app
RUN mkdir -p $APP_HOME
USER 0 USER 0
@ -9,11 +10,10 @@ USER 0
RUN apk add sqlite RUN apk add sqlite
RUN pip install -U "pip>=19.3.1" && \ RUN pip install -U "pip>=19.3.1" && \
pip install -r requirements.txt && \
pip install -r $APP_HOME/requirements.txt && \
# python manage.py collectstatic --noinput && \ # python manage.py collectstatic --noinput && \
python manage.py migrate
python $APP_HOME/manage.py migrate
RUN mkdir -p $APP_HOME
WORKDIR $APP_HOME WORKDIR $APP_HOME
ADD . $APP_HOME ADD . $APP_HOME
RUN chown -R 1000770000:0 ./ RUN chown -R 1000770000:0 ./


Loading…
Cancel
Save