Skip to content

Commit d6fbcc9

Browse files
committed
Keep postgres static libraries in Alpine images
Do not remove static postgres libraries from Alpine based images. This add near 1.4MB to image size, but allow to complie some extentions like repmgr without errors
1 parent 9abfeee commit d6fbcc9

File tree

7 files changed

+0
-14
lines changed

7 files changed

+0
-14
lines changed

10/alpine/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,6 @@ RUN set -eux; \
130130
/usr/local/share/doc \
131131
/usr/local/share/man \
132132
; \
133-
find /usr/local -name '*.a' -delete; \
134-
\
135133
postgres --version
136134

137135
# make the sample config easier to munge (and "correct by default")

11/alpine/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,6 @@ RUN set -eux; \
132132
/usr/local/share/doc \
133133
/usr/local/share/man \
134134
; \
135-
find /usr/local -name '*.a' -delete; \
136-
\
137135
postgres --version
138136

139137
# make the sample config easier to munge (and "correct by default")

12/alpine/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,6 @@ RUN set -eux; \
132132
/usr/local/share/doc \
133133
/usr/local/share/man \
134134
; \
135-
find /usr/local -name '*.a' -delete; \
136-
\
137135
postgres --version
138136

139137
# make the sample config easier to munge (and "correct by default")

13/alpine/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,6 @@ RUN set -eux; \
132132
/usr/local/share/doc \
133133
/usr/local/share/man \
134134
; \
135-
find /usr/local -name '*.a' -delete; \
136-
\
137135
postgres --version
138136

139137
# make the sample config easier to munge (and "correct by default")

9.5/alpine/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,6 @@ RUN set -eux; \
128128
/usr/local/share/doc \
129129
/usr/local/share/man \
130130
; \
131-
find /usr/local -name '*.a' -delete; \
132-
\
133131
postgres --version
134132

135133
# make the sample config easier to munge (and "correct by default")

9.6/alpine/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,6 @@ RUN set -eux; \
128128
/usr/local/share/doc \
129129
/usr/local/share/man \
130130
; \
131-
find /usr/local -name '*.a' -delete; \
132-
\
133131
postgres --version
134132

135133
# make the sample config easier to munge (and "correct by default")

Dockerfile-alpine.template

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,6 @@ RUN set -eux; \
132132
/usr/local/share/doc \
133133
/usr/local/share/man \
134134
; \
135-
find /usr/local -name '*.a' -delete; \
136-
\
137135
postgres --version
138136

139137
# make the sample config easier to munge (and "correct by default")

0 commit comments

Comments
 (0)