# One-shot migration launcher for the parity example: applies schema.sql with
# `psql`, itself already present on the `postgres` base image, against the
# database named by the standard PG* libpq environment variables — the same
# names `reference/app.py` connects with, so no separate credential form is
# needed just for this launcher.
FROM postgres:16-alpine

COPY schema.sql /migration/schema.sql

ENTRYPOINT ["psql", "-v", "ON_ERROR_STOP=1", "-f", "/migration/schema.sql"]
