You've already forked postgres
mirror of
https://github.com/docker-library/postgres.git
synced 2025-07-26 23:21:10 +03:00
Fix new zstd support for alpine images
In e8ebf74e50
zstd was installed as build
dependency and thus does not end up in the final image which in turn
renders docker-entrypoint.sh broken when using *.sql.zst files.
This commit is contained in:
2
10/alpine/Dockerfile
generated
2
10/alpine/Dockerfile
generated
@ -61,7 +61,6 @@ RUN set -eux; \
|
||||
tcl-dev \
|
||||
util-linux-dev \
|
||||
zlib-dev \
|
||||
zstd \
|
||||
# https://www.postgresql.org/docs/10/static/release-10.html#id-1.11.6.9.5.13
|
||||
icu-dev \
|
||||
; \
|
||||
@ -127,6 +126,7 @@ RUN set -eux; \
|
||||
# tzdata is optional, but only adds around 1Mb to image size and is recommended by Django documentation:
|
||||
# https://docs.djangoproject.com/en/1.10/ref/databases/#optimizing-postgresql-s-configuration
|
||||
tzdata \
|
||||
zstd \
|
||||
; \
|
||||
apk del --no-network .build-deps; \
|
||||
cd /; \
|
||||
|
2
11/alpine/Dockerfile
generated
2
11/alpine/Dockerfile
generated
@ -62,7 +62,6 @@ RUN set -eux; \
|
||||
tcl-dev \
|
||||
util-linux-dev \
|
||||
zlib-dev \
|
||||
zstd \
|
||||
# https://www.postgresql.org/docs/10/static/release-10.html#id-1.11.6.9.5.13
|
||||
icu-dev \
|
||||
; \
|
||||
@ -129,6 +128,7 @@ RUN set -eux; \
|
||||
# tzdata is optional, but only adds around 1Mb to image size and is recommended by Django documentation:
|
||||
# https://docs.djangoproject.com/en/1.10/ref/databases/#optimizing-postgresql-s-configuration
|
||||
tzdata \
|
||||
zstd \
|
||||
; \
|
||||
apk del --no-network .build-deps; \
|
||||
cd /; \
|
||||
|
2
12/alpine/Dockerfile
generated
2
12/alpine/Dockerfile
generated
@ -62,7 +62,6 @@ RUN set -eux; \
|
||||
tcl-dev \
|
||||
util-linux-dev \
|
||||
zlib-dev \
|
||||
zstd \
|
||||
# https://www.postgresql.org/docs/10/static/release-10.html#id-1.11.6.9.5.13
|
||||
icu-dev \
|
||||
; \
|
||||
@ -129,6 +128,7 @@ RUN set -eux; \
|
||||
# tzdata is optional, but only adds around 1Mb to image size and is recommended by Django documentation:
|
||||
# https://docs.djangoproject.com/en/1.10/ref/databases/#optimizing-postgresql-s-configuration
|
||||
tzdata \
|
||||
zstd \
|
||||
; \
|
||||
apk del --no-network .build-deps; \
|
||||
cd /; \
|
||||
|
2
13/alpine/Dockerfile
generated
2
13/alpine/Dockerfile
generated
@ -62,7 +62,6 @@ RUN set -eux; \
|
||||
tcl-dev \
|
||||
util-linux-dev \
|
||||
zlib-dev \
|
||||
zstd \
|
||||
# https://www.postgresql.org/docs/10/static/release-10.html#id-1.11.6.9.5.13
|
||||
icu-dev \
|
||||
; \
|
||||
@ -129,6 +128,7 @@ RUN set -eux; \
|
||||
# tzdata is optional, but only adds around 1Mb to image size and is recommended by Django documentation:
|
||||
# https://docs.djangoproject.com/en/1.10/ref/databases/#optimizing-postgresql-s-configuration
|
||||
tzdata \
|
||||
zstd \
|
||||
; \
|
||||
apk del --no-network .build-deps; \
|
||||
cd /; \
|
||||
|
2
14/alpine/Dockerfile
generated
2
14/alpine/Dockerfile
generated
@ -62,7 +62,6 @@ RUN set -eux; \
|
||||
tcl-dev \
|
||||
util-linux-dev \
|
||||
zlib-dev \
|
||||
zstd \
|
||||
# https://www.postgresql.org/docs/10/static/release-10.html#id-1.11.6.9.5.13
|
||||
icu-dev \
|
||||
# https://www.postgresql.org/docs/14/release-14.html#id-1.11.6.5.5.3.7
|
||||
@ -132,6 +131,7 @@ RUN set -eux; \
|
||||
# tzdata is optional, but only adds around 1Mb to image size and is recommended by Django documentation:
|
||||
# https://docs.djangoproject.com/en/1.10/ref/databases/#optimizing-postgresql-s-configuration
|
||||
tzdata \
|
||||
zstd \
|
||||
; \
|
||||
apk del --no-network .build-deps; \
|
||||
cd /; \
|
||||
|
@ -58,7 +58,6 @@ RUN set -eux; \
|
||||
tcl-dev \
|
||||
util-linux-dev \
|
||||
zlib-dev \
|
||||
zstd \
|
||||
# https://www.postgresql.org/docs/10/static/release-10.html#id-1.11.6.9.5.13
|
||||
icu-dev \
|
||||
{{ if .major >= 14 then ( -}}
|
||||
@ -134,6 +133,7 @@ RUN set -eux; \
|
||||
# tzdata is optional, but only adds around 1Mb to image size and is recommended by Django documentation:
|
||||
# https://docs.djangoproject.com/en/1.10/ref/databases/#optimizing-postgresql-s-configuration
|
||||
tzdata \
|
||||
zstd \
|
||||
; \
|
||||
apk del --no-network .build-deps; \
|
||||
cd /; \
|
||||
|
Reference in New Issue
Block a user