Skip to content

Commit 8e31140

Browse files
authored
Merge pull request docker-library#976 from ImreSamu/alpine-with-zstd
pg >=15 alpine: Enable Zstandard builds "--with-zstd"
2 parents 13c3f7a + 7b8a5db commit 8e31140

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

15/alpine/Dockerfile

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Dockerfile-alpine.template

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ RUN set -eux; \
6363
{{ if .major >= 14 then ( -}}
6464
# https://www.postgresql.org/docs/14/release-14.html#id-1.11.6.5.5.3.7
6565
lz4-dev \
66+
{{ ) else "" end -}}
67+
{{ if .major >= 15 then ( -}}
68+
# https://www.postgresql.org/docs/15/release-15.html "--with-zstd to enable Zstandard builds"
69+
zstd-dev \
6670
{{ ) else "" end -}}
6771
; \
6872
\
@@ -111,6 +115,9 @@ RUN set -eux; \
111115
{{ ) else "" end -}}
112116
{{ if .major >= 14 then ( -}}
113117
--with-lz4 \
118+
{{ ) else "" end -}}
119+
{{ if .major >= 15 then ( -}}
120+
--with-zstd \
114121
{{ ) else "" end -}}
115122
; \
116123
make -j "$(nproc)" world; \

0 commit comments

Comments
 (0)