Update Dockerfile
Browse files- Dockerfile +8 -10
Dockerfile
CHANGED
|
@@ -2,27 +2,25 @@ FROM python:3.13.5-slim
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
-
# Install system dependencies
|
| 6 |
RUN apt-get update && apt-get install -y \
|
| 7 |
build-essential \
|
| 8 |
curl \
|
| 9 |
git \
|
| 10 |
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
|
| 12 |
-
# Copy requirements
|
| 13 |
COPY requirements.txt ./
|
| 14 |
-
|
| 15 |
-
# Install exactly what is in your requirements.txt (no hardcoded conflicts!)
|
| 16 |
RUN pip3 install --no-cache-dir -r requirements.txt
|
| 17 |
|
| 18 |
-
# Copy your
|
| 19 |
-
COPY
|
| 20 |
|
| 21 |
-
# Expose the
|
| 22 |
EXPOSE 7860
|
| 23 |
|
| 24 |
-
# Healthcheck
|
| 25 |
HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
|
| 26 |
|
| 27 |
-
#
|
| 28 |
-
ENTRYPOINT ["streamlit", "run", "
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
+
# Install system dependencies
|
| 6 |
RUN apt-get update && apt-get install -y \
|
| 7 |
build-essential \
|
| 8 |
curl \
|
| 9 |
git \
|
| 10 |
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
|
| 12 |
+
# Copy requirements and install
|
| 13 |
COPY requirements.txt ./
|
|
|
|
|
|
|
| 14 |
RUN pip3 install --no-cache-dir -r requirements.txt
|
| 15 |
|
| 16 |
+
# Copy ALL your actual app files into the container
|
| 17 |
+
COPY . .
|
| 18 |
|
| 19 |
+
# Expose the Hugging Face port
|
| 20 |
EXPOSE 7860
|
| 21 |
|
| 22 |
+
# Healthcheck
|
| 23 |
HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
|
| 24 |
|
| 25 |
+
# CRITICAL FIX: Tell Streamlit to run YOUR app file, not the default one!
|
| 26 |
+
ENTRYPOINT ["streamlit", "run", "fresh_app_v2.py", "--server.port=7860", "--server.address=0.0.0.0"]
|