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
|
||||
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 \
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user