AkshitShubham commited on
Commit
b29e017
1 Parent(s): c2d460b

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. Dockerfile +5 -3
  2. app.py +2 -0
Dockerfile CHANGED
@@ -33,6 +33,8 @@ RUN mkdir webdl
33
 
34
  # Run gunicorn when the container launches
35
  #RUN python ./beta/api/api.py
36
- RUN echo "from beta.api.api import app" > ./run.py
37
- RUN echo "app.run(host='0.0.0.0',port=7680)" >> ./run.py
38
- CMD ["python", "run.py", "&"]
 
 
 
33
 
34
  # Run gunicorn when the container launches
35
  #RUN python ./beta/api/api.py
36
+ #RUN echo "from beta.api.api import app" > ./run.py
37
+ #RUN echo "app.run(host='0.0.0.0',port=7680)" >> ./run.py
38
+ #CMD ["python", "run.py", "&"]
39
+
40
+ CMD ["gunicorn", "--workers", "8", "--bind", "0.0.0.0:7680", "app:app"]
app.py ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ from beta.api.api import app
2
+ app.run(host='0.0.0.0',port=7680,debug=True)