Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -4
Dockerfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
FROM python:3.
|
2 |
|
3 |
# Install system dependencies
|
4 |
RUN apt-get update && apt-get install -y \
|
@@ -16,13 +16,15 @@ RUN apt-get update && apt-get install -y \
|
|
16 |
# Set the working directory
|
17 |
WORKDIR /app
|
18 |
|
|
|
|
|
|
|
19 |
# Copy requirements and install Python dependencies
|
20 |
-
COPY requirements.txt /tmp/requirements.txt
|
21 |
RUN pip install --no-cache-dir --upgrade pip && \
|
22 |
-
pip install --no-cache-dir -r /
|
23 |
|
24 |
# Expose the default Streamlit port
|
25 |
EXPOSE 8501
|
26 |
|
27 |
# Command to run the app
|
28 |
-
CMD ["streamlit", "run", "app.py"]
|
|
|
1 |
+
FROM python:3.9-slim
|
2 |
|
3 |
# Install system dependencies
|
4 |
RUN apt-get update && apt-get install -y \
|
|
|
16 |
# Set the working directory
|
17 |
WORKDIR /app
|
18 |
|
19 |
+
# Copy application files
|
20 |
+
COPY . /app
|
21 |
+
|
22 |
# Copy requirements and install Python dependencies
|
|
|
23 |
RUN pip install --no-cache-dir --upgrade pip && \
|
24 |
+
pip install --no-cache-dir -r /app/requirements.txt
|
25 |
|
26 |
# Expose the default Streamlit port
|
27 |
EXPOSE 8501
|
28 |
|
29 |
# Command to run the app
|
30 |
+
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|