initial commit
This commit is contained in:
23
Dockerfile
Normal file
23
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user