abdessamad-bourkibate commited on
Commit
e91bbcd
·
verified ·
1 Parent(s): 683fbd9

Update docker/Dockerfile

Browse files
Files changed (1) hide show
  1. docker/Dockerfile +25 -0
docker/Dockerfile CHANGED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ # System deps for matplotlib + fonts for PDF clarity
4
+ RUN apt-get update && apt-get install -y --no-install-recommends \
5
+ build-essential \
6
+ fonts-dejavu \
7
+ libfreetype6 \
8
+ libpng16-16 \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ WORKDIR /app
12
+
13
+ COPY requirements.txt /app/requirements.txt
14
+ RUN pip install --no-cache-dir -r /app/requirements.txt
15
+
16
+ COPY . /app
17
+
18
+ # Hugging Face Spaces expects port 7860
19
+ EXPOSE 7860
20
+
21
+ ENV PYTHONUNBUFFERED=1
22
+ ENV GRADIO_SERVER_NAME=0.0.0.0
23
+ ENV GRADIO_SERVER_PORT=7860
24
+
25
+ CMD ["python", "main.py"]