Spaces:
No application file
No application file
Update Dockerfile.txt
Browse files- Dockerfile.txt +4 -4
Dockerfile.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
# Use official Python image
|
| 2 |
FROM python:3.10-slim
|
| 3 |
|
| 4 |
# Set working directory
|
|
@@ -8,11 +8,11 @@ WORKDIR /app
|
|
| 8 |
COPY requirements.txt .
|
| 9 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 10 |
|
| 11 |
-
# Copy
|
| 12 |
COPY . .
|
| 13 |
|
| 14 |
-
# Expose
|
| 15 |
EXPOSE 8501
|
| 16 |
|
| 17 |
-
#
|
| 18 |
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
|
|
|
| 1 |
+
# Use official Python 3.10 image
|
| 2 |
FROM python:3.10-slim
|
| 3 |
|
| 4 |
# Set working directory
|
|
|
|
| 8 |
COPY requirements.txt .
|
| 9 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 10 |
|
| 11 |
+
# Copy all files into container
|
| 12 |
COPY . .
|
| 13 |
|
| 14 |
+
# Expose Streamlit port
|
| 15 |
EXPOSE 8501
|
| 16 |
|
| 17 |
+
# Run Streamlit app
|
| 18 |
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|