Spaces:
Sleeping
Sleeping
Ajout de configuration Docker pour Hugging Face Spaces avec support Poppler
Browse files- .dockerignore +6 -0
- Dockerfile +13 -0
- runtime.txt +1 -0
.dockerignore
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.git
|
2 |
+
.gitignore
|
3 |
+
.gradio
|
4 |
+
__pycache__
|
5 |
+
*.pyc
|
6 |
+
*.pyo
|
Dockerfile
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.9
|
2 |
+
|
3 |
+
WORKDIR /code
|
4 |
+
|
5 |
+
# Installer poppler-utils pour pdf2image
|
6 |
+
RUN apt-get update && apt-get install -y poppler-utils && rm -rf /var/lib/apt/lists/*
|
7 |
+
|
8 |
+
COPY requirements.txt /code/requirements.txt
|
9 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
10 |
+
|
11 |
+
COPY . /code
|
12 |
+
|
13 |
+
CMD ["python", "app.py"]
|
runtime.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
3.9
|