FROM postgres:16.1 AS build ADD ./init-database.sql /docker-entrypoint-initdb.d RUN chmod 644 /docker-entrypoint-initdb.d/init-database.sql EXPOSE 5432 ENTRYPOINT [ "docker-entrypoint.sh" ] CMD [ "postgres" ]