HR-ATS-Portal/docker/postgres/Dockerfile

18 lines
606 B
Docker

# syntax=docker/dockerfile:1
#
# Postgres image used by the production Compose stack (DB_HOST=postgres).
# The volume starts empty on first boot; Alembic rebuilds the schema. It does
# not share the host server's data — migrate with pg_dump/pg_restore if needed.
#
# Context is ./docker/postgres.
FROM postgres:16-alpine
# The inbox tables store tz-aware timestamps and the app reads them as UTC
# (backend/migrations/versions/20260812_1035-b3f1c2d4e5a6_inbox_timestamps_tz_aware.py).
ENV TZ=UTC \
PGTZ=UTC
# Runs once, against an empty data volume only.
COPY initdb/ /docker-entrypoint-initdb.d/