Browse Source

Añado Dockerfile

main
Celestino Rey 11 months ago
parent
commit
a896b4cbb2
2 changed files with 17 additions and 1 deletions
  1. +16
    -0
      Dockerfile
  2. +1
    -1
      openshift/templates/django.json

+ 16
- 0
Dockerfile View File

@ -0,0 +1,16 @@
FROM registry.fedoraproject.org/f33/python3
# Add application sources with correct permissions for OpenShift
USER 0
ADD app-src .
RUN chown -R 1001:0 ./
USER 1001
# 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

+ 1
- 1
openshift/templates/django.json View File

@ -237,7 +237,7 @@
"name": "PYTHON_VERSION",
"displayName": "Version of Python Image",
"description": "Version of Python image to be used (3.6-ubi8, 3.8-ubi7, 3.8-ubi8, or latest).",
"value": "3.8-ubi8",
"value": "latest",
"required": true
},
{


Loading…
Cancel
Save