All checks were successful
Deploy to Staging / Build Images (pull_request) Successful in 3m48s
Deploy to Staging / Deploy to Staging (pull_request) Successful in 52s
Deploy to Staging / Verify Staging (pull_request) Successful in 2m31s
Deploy to Staging / Notify Staging Ready (pull_request) Successful in 8s
Deploy to Staging / Notify Staging Failure (pull_request) Has been skipped
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
30 lines
775 B
Docker
30 lines
775 B
Docker
# Production Dockerfile for MotoVaultPro OCR Service
|
|
# Uses mirrored base images from Gitea Package Registry
|
|
|
|
# Build argument for registry (defaults to Gitea mirrors, falls back to Docker Hub)
|
|
ARG REGISTRY_MIRRORS=git.motovaultpro.com/egullickson/mirrors
|
|
|
|
FROM ${REGISTRY_MIRRORS}/python:3.13-slim
|
|
|
|
# System dependencies
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
tesseract-ocr \
|
|
tesseract-ocr-eng \
|
|
libtesseract-dev \
|
|
libheif1 \
|
|
libheif-dev \
|
|
libglib2.0-0 \
|
|
libmagic1 \
|
|
curl \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Python dependencies
|
|
WORKDIR /app
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . .
|
|
|
|
EXPOSE 8000
|
|
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
|