docker ready

This commit is contained in:
dom 2026-02-06 12:43:03 +01:00
parent 45d44435af
commit 2b694bad90
3 changed files with 30 additions and 1 deletions

22
Dockerfile Normal file
View File

@ -0,0 +1,22 @@
cat > Dockerfile <<'EOF'
FROM python:3.11-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
RUN apt-get update && apt-get install -y --no-install-recommends \
tesseract-ocr \
libtesseract-dev \
libimage-exiftool-perl \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r /app/requirements.txt
COPY main.py /app/main.py
CMD ["python", "/app/main.py"]
EOF

View File

@ -1,4 +1,4 @@
# ingest.py
# main.py
#!/usr/bin/env python3
import os
import re

7
requirements.txt Normal file
View File

@ -0,0 +1,7 @@
boto3==1.35.0
psycopg[binary]==3.2.3
Pillow==10.4.0
pytesseract==0.3.13
python-dateutil==2.9.0.post0
PyYAML==6.0.2
EOF