Skip to content

Commit efcfb73

Browse files
authored
Reduce apt dependencies download. (#906)
1 parent 46c8354 commit efcfb73

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

Dockerfile

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ ARG PGVERSION=10
1212
#
1313
FROM debian:buster-slim as base
1414

15+
ARG PGVERSION
16+
1517
RUN apt-get update \
1618
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
1719
build-essential \
@@ -57,16 +59,8 @@ RUN echo "deb http://apt.postgresql.org/pub/repos/apt buster-pgdg main" > /etc/a
5759
RUN echo 'create_main_cluster = false' | sudo tee -a /etc/postgresql-common/createcluster.conf
5860
RUN apt-get update \
5961
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
60-
postgresql-server-dev-10 \
61-
postgresql-server-dev-11 \
62-
postgresql-server-dev-12 \
63-
postgresql-server-dev-13 \
64-
postgresql-server-dev-14 \
65-
postgresql-10 \
66-
postgresql-11 \
67-
postgresql-12 \
68-
postgresql-13 \
69-
postgresql-14 \
62+
postgresql-server-dev-${PGVERSION} \
63+
postgresql-${PGVERSION} \
7064
&& rm -rf /var/lib/apt/lists/*
7165

7266
RUN pip3 install pyroute2>=0.5.17

0 commit comments

Comments
 (0)