trystine commited on
Commit
ed02bef
·
verified ·
1 Parent(s): c456b30

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -10
Dockerfile CHANGED
@@ -2,27 +2,25 @@ FROM python:3.13.5-slim
2
 
3
  WORKDIR /app
4
 
5
- # Install system dependencies and clean up cache to save space
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 file first
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 source code
19
- COPY src/ ./src/
20
 
21
- # Expose the specific port Hugging Face Spaces requires
22
  EXPOSE 7860
23
 
24
- # Healthcheck to ensure Streamlit is running correctly
25
  HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
26
 
27
- # Start Streamlit on the correct Hugging Face port
28
- ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=7860", "--server.address=0.0.0.0"]
 
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"]