You've already forked postgres
mirror of
https://github.com/docker-library/postgres.git
synced 2025-12-03 22:31:18 +03:00
Add less to Debian variants
https://www.postgresql.org/docs/16/app-psql.html#APP-PSQL-META-COMMAND-PSET-PAGER https://github.com/postgres/postgres/blob/REL_16_1/src/include/fe_utils/print.h#L25 (if "less" is available, it gets used as the default pager for psql, and it only adds ~1.5MiB to our image size)
This commit is contained in:
4
12/bookworm/Dockerfile
generated
4
12/bookworm/Dockerfile
generated
@@ -20,6 +20,10 @@ RUN set -ex; \
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends \
|
||||
gnupg \
|
||||
# https://www.postgresql.org/docs/16/app-psql.html#APP-PSQL-META-COMMAND-PSET-PAGER
|
||||
# https://github.com/postgres/postgres/blob/REL_16_1/src/include/fe_utils/print.h#L25
|
||||
# (if "less" is available, it gets used as the default pager for psql, and it only adds ~1.5MiB to our image size)
|
||||
less \
|
||||
; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
|
||||
4
12/bullseye/Dockerfile
generated
4
12/bullseye/Dockerfile
generated
@@ -20,6 +20,10 @@ RUN set -ex; \
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends \
|
||||
gnupg \
|
||||
# https://www.postgresql.org/docs/16/app-psql.html#APP-PSQL-META-COMMAND-PSET-PAGER
|
||||
# https://github.com/postgres/postgres/blob/REL_16_1/src/include/fe_utils/print.h#L25
|
||||
# (if "less" is available, it gets used as the default pager for psql, and it only adds ~1.5MiB to our image size)
|
||||
less \
|
||||
; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
|
||||
4
13/bookworm/Dockerfile
generated
4
13/bookworm/Dockerfile
generated
@@ -20,6 +20,10 @@ RUN set -ex; \
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends \
|
||||
gnupg \
|
||||
# https://www.postgresql.org/docs/16/app-psql.html#APP-PSQL-META-COMMAND-PSET-PAGER
|
||||
# https://github.com/postgres/postgres/blob/REL_16_1/src/include/fe_utils/print.h#L25
|
||||
# (if "less" is available, it gets used as the default pager for psql, and it only adds ~1.5MiB to our image size)
|
||||
less \
|
||||
; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
|
||||
4
13/bullseye/Dockerfile
generated
4
13/bullseye/Dockerfile
generated
@@ -20,6 +20,10 @@ RUN set -ex; \
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends \
|
||||
gnupg \
|
||||
# https://www.postgresql.org/docs/16/app-psql.html#APP-PSQL-META-COMMAND-PSET-PAGER
|
||||
# https://github.com/postgres/postgres/blob/REL_16_1/src/include/fe_utils/print.h#L25
|
||||
# (if "less" is available, it gets used as the default pager for psql, and it only adds ~1.5MiB to our image size)
|
||||
less \
|
||||
; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
|
||||
4
14/bookworm/Dockerfile
generated
4
14/bookworm/Dockerfile
generated
@@ -20,6 +20,10 @@ RUN set -ex; \
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends \
|
||||
gnupg \
|
||||
# https://www.postgresql.org/docs/16/app-psql.html#APP-PSQL-META-COMMAND-PSET-PAGER
|
||||
# https://github.com/postgres/postgres/blob/REL_16_1/src/include/fe_utils/print.h#L25
|
||||
# (if "less" is available, it gets used as the default pager for psql, and it only adds ~1.5MiB to our image size)
|
||||
less \
|
||||
; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
|
||||
4
14/bullseye/Dockerfile
generated
4
14/bullseye/Dockerfile
generated
@@ -20,6 +20,10 @@ RUN set -ex; \
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends \
|
||||
gnupg \
|
||||
# https://www.postgresql.org/docs/16/app-psql.html#APP-PSQL-META-COMMAND-PSET-PAGER
|
||||
# https://github.com/postgres/postgres/blob/REL_16_1/src/include/fe_utils/print.h#L25
|
||||
# (if "less" is available, it gets used as the default pager for psql, and it only adds ~1.5MiB to our image size)
|
||||
less \
|
||||
; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
|
||||
4
15/bookworm/Dockerfile
generated
4
15/bookworm/Dockerfile
generated
@@ -20,6 +20,10 @@ RUN set -ex; \
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends \
|
||||
gnupg \
|
||||
# https://www.postgresql.org/docs/16/app-psql.html#APP-PSQL-META-COMMAND-PSET-PAGER
|
||||
# https://github.com/postgres/postgres/blob/REL_16_1/src/include/fe_utils/print.h#L25
|
||||
# (if "less" is available, it gets used as the default pager for psql, and it only adds ~1.5MiB to our image size)
|
||||
less \
|
||||
; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
|
||||
4
15/bullseye/Dockerfile
generated
4
15/bullseye/Dockerfile
generated
@@ -20,6 +20,10 @@ RUN set -ex; \
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends \
|
||||
gnupg \
|
||||
# https://www.postgresql.org/docs/16/app-psql.html#APP-PSQL-META-COMMAND-PSET-PAGER
|
||||
# https://github.com/postgres/postgres/blob/REL_16_1/src/include/fe_utils/print.h#L25
|
||||
# (if "less" is available, it gets used as the default pager for psql, and it only adds ~1.5MiB to our image size)
|
||||
less \
|
||||
; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
|
||||
4
16/bookworm/Dockerfile
generated
4
16/bookworm/Dockerfile
generated
@@ -20,6 +20,10 @@ RUN set -ex; \
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends \
|
||||
gnupg \
|
||||
# https://www.postgresql.org/docs/16/app-psql.html#APP-PSQL-META-COMMAND-PSET-PAGER
|
||||
# https://github.com/postgres/postgres/blob/REL_16_1/src/include/fe_utils/print.h#L25
|
||||
# (if "less" is available, it gets used as the default pager for psql, and it only adds ~1.5MiB to our image size)
|
||||
less \
|
||||
; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
|
||||
4
16/bullseye/Dockerfile
generated
4
16/bullseye/Dockerfile
generated
@@ -20,6 +20,10 @@ RUN set -ex; \
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends \
|
||||
gnupg \
|
||||
# https://www.postgresql.org/docs/16/app-psql.html#APP-PSQL-META-COMMAND-PSET-PAGER
|
||||
# https://github.com/postgres/postgres/blob/REL_16_1/src/include/fe_utils/print.h#L25
|
||||
# (if "less" is available, it gets used as the default pager for psql, and it only adds ~1.5MiB to our image size)
|
||||
less \
|
||||
; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
|
||||
@@ -14,6 +14,10 @@ RUN set -ex; \
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends \
|
||||
gnupg \
|
||||
# https://www.postgresql.org/docs/16/app-psql.html#APP-PSQL-META-COMMAND-PSET-PAGER
|
||||
# https://github.com/postgres/postgres/blob/REL_16_1/src/include/fe_utils/print.h#L25
|
||||
# (if "less" is available, it gets used as the default pager for psql, and it only adds ~1.5MiB to our image size)
|
||||
less \
|
||||
; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user