ariansyahdedy commited on
Commit
ca7e4d3
·
1 Parent(s): 3f547b1

use Procfile

Browse files
Files changed (3) hide show
  1. Dockerfile → Dockerfilecop +0 -0
  2. Procfile +1 -0
  3. main.py +1 -1
Dockerfile → Dockerfilecop RENAMED
File without changes
Procfile ADDED
@@ -0,0 +1 @@
 
 
1
+ web: python main.py
main.py CHANGED
@@ -35,4 +35,4 @@ async def root():
35
  return {"greeting": "Hello, World!", "message": "This is a service to extract the first frame of a video!"}
36
 
37
  if __name__ == "__main__":
38
- uvicorn.run("main:app", host=host, port=port, reload=True)
 
35
  return {"greeting": "Hello, World!", "message": "This is a service to extract the first frame of a video!"}
36
 
37
  if __name__ == "__main__":
38
+ uvicorn.run("main:app", host="0.0.0.0", port=os.getenv("PORT", default=5000), log_level="info")