initial commit

This commit is contained in:
Syoul
2025-08-08 20:53:04 +02:00
commit 63aeef3dd2
3 changed files with 233 additions and 0 deletions

23
Dockerfile Normal file
View File

@@ -0,0 +1,23 @@
# Image Python légère
FROM python:3.11-slim
# Installer Java (tabula-py utilise tabula-java)
RUN apt-get update && apt-get install -y --no-install-recommends \
openjdk-17-jre-headless \
&& rm -rf /var/lib/apt/lists/*
# (Optionnel) encodage propre côté JVM
ENV JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF-8"
# Installer dépendances Python
RUN pip install --no-cache-dir tabula-py pandas
# Copier le script dans l'image
WORKDIR /app
COPY convert.py /app/convert.py
# Répertoire de travail contenant les PDF (sera monté en volume)
WORKDIR /data
# Lancer le script sur /data
ENTRYPOINT ["python", "/app/convert.py"]