Commit graph

5 commits

Author SHA1 Message Date
aa66f30216 Rewrite the Dockerfile for production and Kubernetes
The old Dockerfile copied the abandoned v2 app and a requirements file
that no longer existed, and needed build tools and a libldap workaround
for python-ldap.

The new image:
- python:3.15-slim (Debian trixie) with security updates applied; no
  compiler and no sshd
- runs gunicorn (gthread workers; GUNICORN_* overrides) as uid 10001
- works with a read-only root filesystem and all capabilities dropped
- runs collectstatic at build time; the dev env file is mounted for that
  step only and is not stored in the image
- does not run migrations on start; run manage.py migrate once per
  release (an init container in Kubernetes)

Checked against the dev LDAP and PostgreSQL containers: migrate, both
health probes, static files and a full login through gunicorn work.
2026-11-06 15:35:39 +03:00
Nico Schottelius
e88cd4bc59 Register add 2021-12-12 20:39:32 +01:00
Nico Schottelius
12ed80292b in between commit 2021-12-12 20:07:32 +01:00
Nico Schottelius
9247b627fd Begin cleanup 2021-12-05 18:19:35 +01:00
Nico Schottelius
27d15a5ddf Add initial Dockerfile 2021-12-05 18:14:32 +01:00