File tree 1 file changed +12
-3
lines changed
1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,16 @@ ARG IMAGE=bullseye
2
2
FROM mcr.microsoft.com/devcontainers/${IMAGE}
3
3
4
4
ENV PYTHONUNBUFFERED 1
5
+ ENV DEBIAN_FRONTEND=noninteractive
5
6
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/*
You can’t perform that action at this time.
0 commit comments