Files
epub-audit/Dockerfile
Maxime Killinger c5f358e07d
All checks were successful
🚀 Docker Build and Push / build-and-push (push) Successful in 58s
feat: init epub audit tool (distroless/python)
- Implemented 'audit_epubs.py' using standard libraries (zipfile, xml.etree) for high performance.
- Created optimized Dockerfile based on 'gcr.io/distroless/python3-debian12' for minimal security attack surface.
- Added strict metadata validation rules.
- Included CI/CD workflow for Gitea Actions.
- Added comprehensive README.md.
2026-01-07 23:31:59 +00:00

22 lines
747 B
Docker

# Build Stage
FROM python:3.11-slim-bookworm AS builder
WORKDIR /app
COPY audit_epubs.py .
# Final Stage: Distroless
FROM gcr.io/distroless/python3-debian12
# OCI Labels
LABEL org.opencontainers.image.title="EPUB Audit Tool" \
org.opencontainers.image.description="Outil d'audit de métadonnées de livres numériques EPUB (Distroless/Python)" \
org.opencontainers.image.authors="Maxime Killinger" \
org.opencontainers.image.source="https://gitea.killinger.fr/maxime.killinger/epub-audit" \
org.opencontainers.image.licenses="MIT"
WORKDIR /app
COPY --from=builder /app/audit_epubs.py .
# Distroless python entrypoint is already python3
# We just provide the script and default argument
CMD ["audit_epubs.py", "/books"]