Skip to content

feat: add production container image - #49

Merged
HoungDev merged 1 commit into
mainfrom
agent/add-production-container-image
Aug 11, 2026
Merged

feat: add production container image#49
HoungDev merged 1 commit into
mainfrom
agent/add-production-container-image

Conversation

@HoungDev

Copy link
Copy Markdown
Owner

Summary

  • add a multi-stage production image built from the locked runtime dependency set
  • run the final image as UID/GID 10001 without uv, test dependencies, the source checkout, or environment files
  • extend Compose with a one-shot migration service and a hardened API service
  • add CI checks that build and run the image against PostgreSQL, verify non-root identity, and smoke-test liveness/readiness
  • add a stack-up development command, Docker Dependabot coverage, and deployment/release documentation

Security and operations model

The container starts one Uvicorn process and expects migrations to run as a separate release task. The documented runtime uses a read-only root filesystem, a writable /tmp tmpfs, no Linux capabilities, and no-new-privileges. The image healthcheck uses liveness so a dependency outage does not cause a restart loop; readiness remains the traffic-admission signal.

Validation

  • ruff format --check .
  • ruff check .
  • 12 focused helper/container-file tests passed locally
  • full Docker build, runtime identity check, PostgreSQL readiness smoke test, full suite, audit, and package checks delegated to GitHub Actions

@HoungDev
HoungDev marked this pull request as ready for review August 11, 2026 14:31
@HoungDev
HoungDev merged commit cae8b3a into main Aug 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant