# MySQL 8 with the production schema + demo seed data baked in. # # TRAP: /docker-entrypoint-initdb.d/* runs ONLY when the datadir is empty. On a # redeploy against an existing gp3 PVC these scripts are skipped — existing data # survives (correct) but schema changes are NOT applied. Future schema changes # need `npm run prod:migrate` run as a separate Job; 01-schema.sql bootstraps # the _prisma_migrations table so that stays possible. FROM mysql:8 ENV MYSQL_DATABASE=it_cost_dashboard # MYSQL_ROOT_PASSWORD is deliberately NOT baked in — it arrives as a pod env var # from the Helm-rendered k8s Secret. COPY prisma/prod/01-schema.sql /docker-entrypoint-initdb.d/01-schema.sql COPY prisma/seed.sql /docker-entrypoint-initdb.d/02-seed.sql