Add Dockerfile for quartermaster-web container #28
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of the platform-contract work (#25). Platform team has provisioned host-side infrastructure (DNS, Traefik middlewares, bind mount, basic-auth creds); the image and compose to consume it are our responsibility.
Scope
Add a
Dockerfileat the repo root producing a container image suitable for home-ctr-onyx:python:3.12-slim-*. Keep the image small.uvand runuv sync --no-dev --frozenso the build uses the locked dep set.USER 1000:1000— required so the container can write to/mnt/quartermaster/(owner1000:1000, mode0750per the platform contract comment on #25).alembic upgrade headfirst (the pre-upgrade backup hook inalembic/env.pyfires automatically), thenuvicorn quartermaster.main:app --host 0.0.0.0 --port 8000 --log-config src/quartermaster/logconfig.json. A small entrypoint script is the natural fit.EXPOSE 8000.HEALTHCHECKhitting/healthz(from #26) — belt-and-suspenders alongside the compose-level healthcheck that will land in #29.Out of scope
compose.yml— separate issue, depends on this image.Deliverables
Dockerfileat repo root.docker build+docker runpair./healthz, confirm JSON logs on stdout.Blocks the compose-file and Actions-workflow follow-up issues.