docker
This commit is contained in:
20
.dockerignore
Normal file
20
.dockerignore
Normal 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
0
.env.example
Normal 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 \
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user