Skip to content

Commit

Permalink
Review fixes for non-interactive Dockerfile builds. (#902)
Browse files Browse the repository at this point in the history
  • Loading branch information
DimCitus committed May 17, 2022
1 parent 3573e54 commit b818ecd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ FROM debian:buster-slim as run
ARG PGVERSION

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
ca-certificates \
curl \
gnupg \
Expand All @@ -143,7 +143,7 @@ RUN echo "deb http://apt.postgresql.org/pub/repos/apt buster-pgdg main" > /etc/a
# bypass initdb of a "main" cluster
RUN echo 'create_main_cluster = false' | sudo tee -a /etc/postgresql-common/createcluster.conf
RUN apt-get update\
&& apt-get install -y --no-install-recommends postgresql-${PGVERSION} \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends postgresql-${PGVERSION} \
&& rm -rf /var/lib/apt/lists/*

RUN adduser --disabled-password --gecos '' --home /var/lib/postgres docker
Expand Down

0 comments on commit b818ecd

Please sign in to comment.