Update Dockerfile to set non-interactive mode for PostgreSQL installation

This commit is contained in:
Ayush Shah 2025-04-30 17:29:48 +05:30
parent b61e1124a9
commit a7e77f35cb

View File

@ -44,7 +44,7 @@ RUN dpkg --configure -a \
RUN curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
RUN echo "deb https://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg main" > /etc/apt/sources.list.d/pgdg.list
RUN apt-get -qq update
RUN apt-get -qq install --no-install-recommends -y libpq-dev postgresql-15 postgresql-client-15 postgresql-common postgresql-contrib-15
RUN DEBIAN_FRONTEND=noninteractive apt-get -qq install --no-install-recommends -y libpq-dev postgresql-15 postgresql-client-15 postgresql-common postgresql-contrib-15
RUN apt-get -qq autoremove -yqq --purge
RUN apt-get -qq clean && rm -rf /var/lib/apt/lists/*