Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
|
@@ -2,12 +2,12 @@ FROM python:3.10-slim
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
-
# System dependencies
|
| 6 |
RUN apt-get update && apt-get install -y build-essential && rm -rf /var/lib/apt/lists/*
|
| 7 |
|
| 8 |
# Install Python dependencies
|
| 9 |
COPY requirements.txt .
|
| 10 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 11 |
|
| 12 |
# Copy application files
|
| 13 |
COPY . .
|
|
@@ -20,5 +20,5 @@ ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
|
|
| 20 |
|
| 21 |
EXPOSE 7860
|
| 22 |
|
| 23 |
-
# Start the app
|
| 24 |
-
CMD ["streamlit", "run", "app.py"
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
+
# System dependencies
|
| 6 |
RUN apt-get update && apt-get install -y build-essential && rm -rf /var/lib/apt/lists/*
|
| 7 |
|
| 8 |
# Install Python dependencies
|
| 9 |
COPY requirements.txt .
|
| 10 |
+
RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt
|
| 11 |
|
| 12 |
# Copy application files
|
| 13 |
COPY . .
|
|
|
|
| 20 |
|
| 21 |
EXPOSE 7860
|
| 22 |
|
| 23 |
+
# Start the app (uses environment variable for port)
|
| 24 |
+
CMD ["streamlit", "run", "app.py"]
|