Skip to content

Commit 24f52bf

Browse files
committed
Add POSTGRES_ARGS
1 parent 5e7e83a commit 24f52bf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Dockerfile.alpine3.21

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ RUN apk add --no-cache --virtual .build-deps ${BUILD_DEPS} && \
1313
make -C /tmp/pg_cron install && \
1414
rm -rf /tmp/pg_cron && \
1515
apk del .build-deps && \
16-
echo "shared_preload_libraries = 'pg_cron'" >> /usr/local/share/postgresql/postgresql.conf.sample
16+
echo "shared_preload_libraries = 'pg_cron'" >> /usr/local/share/postgresql/postgresql.conf.sample && \
17+
sed -i 's|exec "\$@"|exec "\$@" "\${POSTGRES_ARGS}"|' /usr/local/bin/docker-entrypoint.sh

0 commit comments

Comments
 (0)