Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- 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
|
| 17 |
-
|
| 18 |
-
#
|
| 19 |
-
CMD ["
|
|
|
|
| 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"]
|