FROM registry.access.redhat.com/ubi9/python-311:1-52.1712567218 # Add application sources with correct permissions for OpenShift USER 0 COPY . /app RUN mkdir -p /app/static/css /app/static/js /app/static/img RUN chown -R 1001:0 /app USER 1001 WORKDIR /app # Install the dependencies RUN pip install -U "pip>=19.3.1" && \ pip install -r requirements.txt && \ python manage.py collectstatic --noinput && \ python manage.py migrate # Run the application CMD python manage.py runserver 0.0.0.0:8080