Commiting Dockerfile.db
This commit is contained in:
parent
eecee44129
commit
2f7de2cf8f
2 changed files with 10 additions and 2 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -2,6 +2,4 @@ node_modules
|
||||||
.env
|
.env
|
||||||
pnpm-lock*
|
pnpm-lock*
|
||||||
dist
|
dist
|
||||||
*.db
|
|
||||||
*.sqlite*
|
|
||||||
db_data
|
db_data
|
10
Dockerfile.db
Normal file
10
Dockerfile.db
Normal file
|
@ -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"]
|
Loading…
Reference in a new issue