Update Dockerfile
Browse files- Dockerfile +7 -5
Dockerfile
CHANGED
|
@@ -1,17 +1,19 @@
|
|
| 1 |
FROM python:3.11-slim
|
| 2 |
|
| 3 |
-
# Set working directory
|
| 4 |
WORKDIR /app
|
| 5 |
|
| 6 |
-
# Copy files
|
| 7 |
COPY . .
|
| 8 |
|
| 9 |
# Install dependencies
|
| 10 |
RUN pip install --upgrade pip
|
| 11 |
RUN pip install -r requirements.txt
|
| 12 |
|
| 13 |
-
#
|
| 14 |
EXPOSE 8501
|
| 15 |
|
| 16 |
-
#
|
| 17 |
-
|
|
|
|
|
|
|
|
|
| 1 |
FROM python:3.11-slim
|
| 2 |
|
| 3 |
+
# Set the working directory
|
| 4 |
WORKDIR /app
|
| 5 |
|
| 6 |
+
# Copy all files from the repository into the container
|
| 7 |
COPY . .
|
| 8 |
|
| 9 |
# Install dependencies
|
| 10 |
RUN pip install --upgrade pip
|
| 11 |
RUN pip install -r requirements.txt
|
| 12 |
|
| 13 |
+
# Streamlit runs on port 8501 by default
|
| 14 |
EXPOSE 8501
|
| 15 |
|
| 16 |
+
# Launch Streamlit correctly
|
| 17 |
+
ENTRYPOINT ["streamlit", "run"]
|
| 18 |
+
CMD ["app.py", "--server.address=0.0.0.0", "--server.port=8501"]
|
| 19 |
+
|