diff --git a/.gitignore b/.gitignore index 67ad81f..332c19b 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,4 @@ node_modules .env pnpm-lock* dist -*.db -*.sqlite* db_data \ No newline at end of file diff --git a/Dockerfile.db b/Dockerfile.db new file mode 100644 index 0000000..35086e5 --- /dev/null +++ b/Dockerfile.db @@ -0,0 +1,10 @@ +# Start from your desired Postgres version +FROM postgres:17.2 + +# Install the pg_cron package that matches your Postgres major version +RUN apt-get update && \ + apt-get install -y postgresql-17-cron && \ + rm -rf /var/lib/apt/lists/* + +# Use the default entrypoint script so it starts Postgres normally +CMD ["docker-entrypoint.sh", "postgres", "-c", "shared_preload_libraries=pg_cron"]