File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -867,11 +867,11 @@ COPY migrations/db /docker-entrypoint-initdb.d/
867
867
COPY ansible/files/pgbouncer_config/pgbouncer_auth_schema.sql /docker-entrypoint-initdb.d/init-scripts/00-schema.sql
868
868
COPY ansible/files/stat_extension.sql /docker-entrypoint-initdb.d/migrations/00-extension.sql
869
869
870
- # Add upstream entrypoint script
871
- ADD --chmod=0755 \
872
- https://github.com/docker-library/postgres/raw/master/15/bullseye/docker-entrypoint.sh \
873
- /usr/local/bin/
874
- ENTRYPOINT [ " docker-entrypoint.sh" ]
870
+ # Patch upstream entrypoint script
871
+ RUN sed -i \
872
+ -e "s|su-exec|gosu|g" \
873
+ -e "s|PGHOST= PGHOSTADDR=|PGHOST= \$ POSTGRES_HOST|g" \
874
+ /usr/local/bin/ docker-entrypoint.sh
875
875
876
876
HEALTHCHECK --interval=2s --timeout=2s --retries=10 CMD pg_isready -U postgres -h localhost
877
877
STOPSIGNAL SIGINT
You can’t perform that action at this time.
0 commit comments