This commit is contained in:
2024-07-13 01:27:21 +02:00
commit 6ddcb99b8b
3 changed files with 836 additions and 0 deletions

12
Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
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"]