docker ready
This commit is contained in:
parent
45d44435af
commit
2b694bad90
22
Dockerfile
Normal file
22
Dockerfile
Normal 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
|
||||
7
requirements.txt
Normal file
7
requirements.txt
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user