trystine commited on
Commit
7021745
·
verified ·
1 Parent(s): a8dd534

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -8
Dockerfile CHANGED
@@ -2,25 +2,27 @@ 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 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"]
 
2
 
3
  WORKDIR /app
4
 
5
+ # Install system dependencies AND install Ollama
6
  RUN apt-get update && apt-get install -y \
7
  build-essential \
8
  curl \
9
  git \
10
+ && curl -fsSL https://ollama.com/install.sh | sh \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
  # Copy requirements and install
14
  COPY requirements.txt ./
15
  RUN pip3 install --no-cache-dir -r requirements.txt
16
 
17
+ # Copy all your application files
18
  COPY . .
19
 
20
+ # Grant execution permissions to your new startup script
21
+ RUN chmod +x start.sh
22
 
23
+ # Expose Streamlit and Ollama ports
24
+ EXPOSE 7860
25
+ EXPOSE 11434
26
 
27
+ # Boot up using the script instead of just calling Streamlit directly
28
+ ENTRYPOINT ["./start.sh"]