Skip to content

Commit a8d6602

Browse files
Update Dockerfile
1 parent 22732bf commit a8d6602

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

.devcontainer/Dockerfile

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,7 @@ ARG IMAGE=bullseye
22
FROM mcr.microsoft.com/devcontainers/${IMAGE}
33

44
ENV PYTHONUNBUFFERED 1
5-
ENV DEBIAN_FRONTEND=noninteractive
65

7-
# Add the PostgreSQL Apt Repository
8-
RUN apt-get update && \
9-
apt-get install -y wget gnupg2 && \
10-
echo "deb http://apt.postgresql.org/pub/repos/apt bullseye-pgdg main" > /etc/apt/sources.list.d/pgdg.list && \
11-
wget -qO - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
12-
apt-get update && \
13-
apt-get -y install --no-install-recommends \
14-
postgresql-client \
15-
postgresql-server-dev-14 && \
16-
apt-get clean -y && \
17-
rm -rf /var/lib/apt/lists/*
6+
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
7+
&& apt-get -y install --no-install-recommends postgresql-client \
8+
&& apt-get clean -y && rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)