This commit is contained in:
2025-09-17 19:14:30 +00:00
parent 6462f11fcc
commit 8c213772e5
4 changed files with 37 additions and 4 deletions

20
.dockerignore Normal file
View File

@@ -0,0 +1,20 @@
# Git
.git
.gitignore
# Docker
Dockerfile
docker-compose.yml
.dockerignore
# Python
__pycache__/
*.pyc
*.pyo
*.pyd
venv/
*.egg-info/
# IDE files
.vscode/
.idea/

0
.env.example Normal file
View File

View File

@@ -1,9 +1,13 @@
# Dockerfile
FROM python:3.13.7-slim
ENV PYTHONUNBUFFERED=1 \
DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \
tesseract-ocr \
tesseract-ocr-eng \
tesseract-ocr-deu \
ghostscript \
poppler-utils \
libreoffice \
@@ -14,6 +18,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libheif-examples \
inkscape \
calibre \
pngquant \
libvips-tools \
build-essential \
pkg-config \
git \

View File

@@ -1,10 +1,17 @@
version: "3.9"
services:
# The FastAPI Web Server
web:
build: .
env_file:
- .env
ports:
- "5000:5000"
- "8000:8000"
volumes:
- .:/app # optional: mount code for live changes
environment:
- FLASK_ENV=development
# Mount local directories and files into the container for persistence
- ./uploads:/app/uploads
- ./processed:/app/processed
- ./settings.yml:/app/settings.yml
- ./jobs.db:/app/jobs.db
- ./huey.db:/app/huey.db