AravindSL1 commited on
Commit
cce229c
1 Parent(s): 4a2013c

Added Dockerfile

Browse files
Files changed (2) hide show
  1. Dockerfile +13 -0
  2. app.py +3 -2
Dockerfile ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.12-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
+ ENV PORT 7860
12
+
13
+ ENTRYPOINT ["python", "app.py"]
app.py CHANGED
@@ -8,5 +8,6 @@ app.layout = layout
8
  # Register callbacks
9
  register_callbacks(app)
10
 
11
- if __name__ == "__main__":
12
- app.run_server(debug=True,port=os.environ["PORT"] or 8080)
 
 
8
  # Register callbacks
9
  register_callbacks(app)
10
 
11
+ if __name__ == '__main__':
12
+ app.run_server(debug=False, host='0.0.0.0', port=7860)
13
+