Spaces:
Running
Running
P2SAMAPA commited on
Update Dockerfile
Browse files- Dockerfile +3 -4
Dockerfile
CHANGED
|
@@ -4,15 +4,14 @@ FROM python:3.10-slim
|
|
| 4 |
# Set the working directory
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
-
# Install
|
| 8 |
RUN apt-get update && apt-get install -y \
|
| 9 |
build-essential \
|
| 10 |
curl \
|
| 11 |
-
software-properties-common \
|
| 12 |
git \
|
| 13 |
&& rm -rf /var/lib/apt/lists/*
|
| 14 |
|
| 15 |
-
# Copy your requirements first
|
| 16 |
COPY requirements.txt .
|
| 17 |
RUN pip3 install --no-cache-dir -r requirements.txt
|
| 18 |
|
|
@@ -23,4 +22,4 @@ COPY . .
|
|
| 23 |
EXPOSE 8501
|
| 24 |
|
| 25 |
# Command to run the app
|
| 26 |
-
|
|
|
|
| 4 |
# Set the working directory
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
+
# Install only the necessary system dependencies
|
| 8 |
RUN apt-get update && apt-get install -y \
|
| 9 |
build-essential \
|
| 10 |
curl \
|
|
|
|
| 11 |
git \
|
| 12 |
&& rm -rf /var/lib/apt/lists/*
|
| 13 |
|
| 14 |
+
# Copy your requirements first
|
| 15 |
COPY requirements.txt .
|
| 16 |
RUN pip3 install --no-cache-dir -r requirements.txt
|
| 17 |
|
|
|
|
| 22 |
EXPOSE 8501
|
| 23 |
|
| 24 |
# Command to run the app
|
| 25 |
+
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|