arasuezofis commited on
Commit
0ad767f
·
verified ·
1 Parent(s): 09ec541

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -0
Dockerfile CHANGED
@@ -2,11 +2,21 @@ FROM python:3.10
2
 
3
  WORKDIR /app
4
 
 
 
 
 
 
 
 
 
5
  COPY requirements.txt .
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
 
8
  COPY app.py .
9
 
 
10
  EXPOSE 7860
11
 
12
  CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
 
2
 
3
  WORKDIR /app
4
 
5
+ # Install system libraries needed by ReportLab
6
+ RUN apt-get update && apt-get install -y \
7
+ libfreetype6 \
8
+ libjpeg62-turbo \
9
+ libpng16-16 \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
+ # Install Python dependencies
13
  COPY requirements.txt .
14
  RUN pip install --no-cache-dir -r requirements.txt
15
 
16
+ # Copy app
17
  COPY app.py .
18
 
19
+ # HF requires 7860
20
  EXPOSE 7860
21
 
22
  CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]