Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
|
@@ -4,16 +4,16 @@ FROM python:3.9-slim
|
|
| 4 |
# Set the working directory
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
-
# Copy
|
| 8 |
COPY requirements.txt .
|
| 9 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 10 |
|
| 11 |
# Copy the hosting script and model
|
| 12 |
COPY app.py .
|
| 13 |
-
COPY model /
|
| 14 |
|
| 15 |
-
# Expose
|
| 16 |
EXPOSE 8501
|
| 17 |
|
| 18 |
# Run the Streamlit application
|
| 19 |
-
CMD ["streamlit", "run", "app.py"]
|
|
|
|
| 4 |
# Set the working directory
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
+
# Copy requirements and install dependencies
|
| 8 |
COPY requirements.txt .
|
| 9 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 10 |
|
| 11 |
# Copy the hosting script and model
|
| 12 |
COPY app.py .
|
| 13 |
+
COPY model ./model
|
| 14 |
|
| 15 |
+
# Expose Streamlit default port
|
| 16 |
EXPOSE 8501
|
| 17 |
|
| 18 |
# Run the Streamlit application
|
| 19 |
+
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|