adyashanayak165-code commited on
Commit
d5635e0
·
1 Parent(s): f294f90

add docker deployment files

Browse files
Files changed (2) hide show
  1. Dockerfile +11 -0
  2. app.py +1 -1
Dockerfile ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /app
4
+
5
+ COPY . /app
6
+
7
+ RUN pip install --no-cache-dir -r requirements.txt
8
+
9
+ EXPOSE 7860
10
+
11
+ CMD ["python", "app.py"]
app.py CHANGED
@@ -66,4 +66,4 @@ def predict():
66
 
67
 
68
  if __name__ == "__main__":
69
- app.run(debug=True)
 
66
 
67
 
68
  if __name__ == "__main__":
69
+ app.run(host="0.0.0.0",port=7860)