added dockerfile #1

Merged
s415366 merged 2 commits from docker into master 2021-11-21 18:05:51 +01:00
2 changed files with 6 additions and 1 deletions
Showing only changes of commit 7f26747f09 - Show all commits

4
app.py
View File

@ -1,5 +1,6 @@
from flask import Flask
from flask_restful import Api, Resource
import os
import pbrAyctCore.core as core
app = Flask(__name__)
@ -12,4 +13,5 @@ class Hello(Resource):
api.add_resource(Hello, "/hello")
if __name__ == "__main__":
app.run(debug=True)
port = int(os.environ.get('PORT', 5000))
app.run(host = '0.0.0.0', port = port)

3
heroku.yml Normal file
View File

@ -0,0 +1,3 @@
build:
docker:
web: Dockerfile