This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
creylopez
/
djangotutorial
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
1
Wiki
Activity
Browse Source
Añado Dockerfile
main
Celestino Rey
11 months ago
parent
bedcae8f13
commit
a896b4cbb2
2 changed files
with
17 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+16
-0
Dockerfile
+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"
,
"name"
:
"PYTHON_VERSION"
,
"displayName"
:
"Version of Python Image"
,
"displayName"
:
"Version of Python Image"
,
"description"
:
"Version of Python image to be used (3.6-ubi8, 3.8-ubi7, 3.8-ubi8, or latest)."
,
"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
"required"
:
true
}
,
}
,
{
{
Write
Preview
Loading…
Cancel
Save