ProfRick commited on
Commit
5343073
·
verified ·
1 Parent(s): 549e8c3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -8
Dockerfile CHANGED
@@ -1,23 +1,25 @@
1
- FROM python:3.10-slim
2
 
3
- # Minimal system deps (reportlab wheels usually work without these,
4
- # but build-essential keeps us safe if a wheel isn't available)
5
  RUN apt-get update && apt-get install -y --no-install-recommends \
6
  build-essential \
 
 
 
 
7
  && rm -rf /var/lib/apt/lists/*
8
 
9
  WORKDIR /app
10
 
11
- # Install Python deps
 
12
  COPY requirements.txt .
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
15
- # Copy app
16
  COPY . .
17
 
18
- # Required by Spaces
19
  ENV PORT=7860
20
  EXPOSE 7860
21
 
22
- # Launch Streamlit
23
- CMD ["bash", "-lc", "streamlit run app.py --server.port=$PORT --server.address=0.0.0.0"]
 
1
+ FROM python:3.11-slim
2
 
3
+ # Minimal system deps helpful for wheels/compiles
 
4
  RUN apt-get update && apt-get install -y --no-install-recommends \
5
  build-essential \
6
+ libjpeg62-turbo-dev \
7
+ zlib1g-dev \
8
+ libfreetype6-dev \
9
+ libpng-dev \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
  WORKDIR /app
13
 
14
+ RUN pip install --upgrade pip setuptools wheel
15
+
16
  COPY requirements.txt .
17
  RUN pip install --no-cache-dir -r requirements.txt
18
 
 
19
  COPY . .
20
 
 
21
  ENV PORT=7860
22
  EXPOSE 7860
23
 
24
+ CMD ["bash","-lc","streamlit run app.py --server.port=$PORT --server.address=0.0.0.0"]
25
+