Skip to content

Commit 538d547

Browse files
Update Dockerfile
1 parent a635803 commit 538d547

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.devcontainer/Dockerfile

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

44
ENV PYTHONUNBUFFERED 1
5+
ENV DEBIAN_FRONTEND=noninteractive
56

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/*
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/*

0 commit comments

Comments
 (0)