FROM postgres:11.22-bookworm

RUN export DEBIAN_FRONTEND=noninteractive && \
    apt-get update && \
    #Actualize time zone database
    apt-get install -y tzdata && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists

COPY init-postgres-instance.sh /docker-entrypoint-initdb.d/

RUN chmod +x /docker-entrypoint-initdb.d/init-postgres-instance.sh