Skip to content

Commit 069acf6

Browse files
authored
Merge pull request #243 from infosiftr/man-doc
Remove "doc" and "man" from Alpine images for size
2 parents a00e979 + a7ba7f2 commit 069acf6

File tree

6 files changed

+12
-0
lines changed

6 files changed

+12
-0
lines changed

9.2/alpine/Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ RUN set -ex \
106106
&& rm -rf \
107107
/usr/src/postgresql \
108108
/usr/local/include/* \
109+
/usr/local/share/doc \
110+
/usr/local/share/man \
109111
&& find /usr/local -name '*.a' -delete
110112

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

9.3/alpine/Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ RUN set -ex \
106106
&& rm -rf \
107107
/usr/src/postgresql \
108108
/usr/local/include/* \
109+
/usr/local/share/doc \
110+
/usr/local/share/man \
109111
&& find /usr/local -name '*.a' -delete
110112

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

9.4/alpine/Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ RUN set -ex \
106106
&& rm -rf \
107107
/usr/src/postgresql \
108108
/usr/local/include/* \
109+
/usr/local/share/doc \
110+
/usr/local/share/man \
109111
&& find /usr/local -name '*.a' -delete
110112

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

9.5/alpine/Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ RUN set -ex \
106106
&& rm -rf \
107107
/usr/src/postgresql \
108108
/usr/local/include/* \
109+
/usr/local/share/doc \
110+
/usr/local/share/man \
109111
&& find /usr/local -name '*.a' -delete
110112

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

9.6/alpine/Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ RUN set -ex \
106106
&& rm -rf \
107107
/usr/src/postgresql \
108108
/usr/local/include/* \
109+
/usr/local/share/doc \
110+
/usr/local/share/man \
109111
&& find /usr/local -name '*.a' -delete
110112

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

Dockerfile-alpine.template

+2
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ RUN set -ex \
106106
&& rm -rf \
107107
/usr/src/postgresql \
108108
/usr/local/include/* \
109+
/usr/local/share/doc \
110+
/usr/local/share/man \
109111
&& find /usr/local -name '*.a' -delete
110112

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

0 commit comments

Comments
 (0)