FROM postgres RUN apt-get update RUN apt-get install -y --no-install-recommends postgresql-16-cron # Clean up RUN rm -rf /var/lib/apt/lists/* COPY ./my-postgres.conf /etc/postgresql.conf COPY ./initdb-pg_cron.sql /docker-entrypoint-initdb.d/10_pg_cron.sql EXPOSE 5432 CMD ["postgres", "-c", "config_file=/etc/postgresql.conf"]