dhani10 commited on
Commit
27f7a27
·
verified ·
1 Parent(s): b79e292

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -4
Dockerfile CHANGED
@@ -1,15 +1,22 @@
1
-
2
  FROM python:3.10-slim
3
 
 
4
  WORKDIR /app
5
 
 
6
  COPY . .
7
 
 
8
  RUN pip install --no-cache-dir -r requirements.txt
9
 
10
- EXPOSE 5000 8501
 
 
 
 
 
 
11
 
12
- #CMD ["bash", "-c", "streamlit run streamlit_app.py & python3 app.py"]
13
- CMD ["streamlit", "run", "streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
14
 
15
 
 
1
+ # Use official slim Python image
2
  FROM python:3.10-slim
3
 
4
+ # Set working directory
5
  WORKDIR /app
6
 
7
+ # Copy all files
8
  COPY . .
9
 
10
+ # Install required packages
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
+ # Expose Flask (5000) and Streamlit (7860)
14
+ EXPOSE 5000
15
+ EXPOSE 7860
16
+
17
+ # Run launcher script
18
+ CMD ["python", "main.py"]
19
+
20
 
 
 
21
 
22