diff --git a/postgres/Dockerfile b/postgres/Dockerfile index 5f5057cf7..4c3e9ef2a 100644 --- a/postgres/Dockerfile +++ b/postgres/Dockerfile @@ -74,6 +74,8 @@ RUN chmod 777 /ha_entrypoint.sh /ha_entrypoint_modif.sh && /ha_entrypoint_modif. RUN chmod 777 /docker-entrypoint-initdb.d/* +RUN echo -e "\n# Simulate long-running process to allow signal handling\nwhile true; do\n sleep 1\ndone" >> /ha_entrypoint.sh + WORKDIR /config ENTRYPOINT [ "/ha_entrypoint.sh" ]