We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ae9afa commit d150b9aCopy full SHA for d150b9a
app.py
@@ -8,6 +8,7 @@ def hello():
8
return "Hello World!"
9
10
if __name__ == '__main__':
11
- port = int(os.environ.get('FLASK_PORT')) or 8080
+ port = os.environ.get('FLASK_PORT') or 8080
12
+ port = int(port)
13
14
app.run(port=port,host='0.0.0.0')
docker/Dockerfile
@@ -1,4 +1,4 @@
1
-FROM python:slim
+FROM quay.io/devfile/python:slim
2
3
# By default, listen on port 8081
4
EXPOSE 8081/tcp
0 commit comments