Gagan0141 commited on
Commit
53da354
·
verified ·
1 Parent(s): 5c7d132

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -19
Dockerfile CHANGED
@@ -1,19 +1,19 @@
1
- # Base image
2
- FROM python:3.11-slim
3
-
4
- # Set working directory
5
- WORKDIR /app
6
-
7
- # Copy requirements and install dependencies
8
- COPY requirements.txt .
9
- RUN pip install --no-cache-dir --upgrade pip
10
- RUN pip install --no-cache-dir -r requirements.txt
11
-
12
- # Copy project files
13
- COPY . .
14
-
15
- # Expose port
16
- EXPOSE 8000
17
-
18
- # Default command
19
- CMD ["python", "2.py"]
 
1
+ # Base image with Python
2
+ FROM python:3.11-slim
3
+
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ # Copy requirements and install dependencies
8
+ COPY requirements.txt .
9
+ RUN pip install --no-cache-dir --upgrade pip
10
+ RUN pip install --no-cache-dir -r requirements.txt
11
+
12
+ # Copy project files
13
+ COPY . .
14
+
15
+ # Expose Streamlit default port
16
+ EXPOSE 8501
17
+
18
+ # Command to run Streamlit app
19
+ CMD ["streamlit", "run", "2.py", "--server.port=8501", "--server.address=0.0.0.0"]