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

View File

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