1
0
mirror of https://github.com/docker-library/postgres.git synced 2025-11-17 13:02:40 +03:00

Remove "doc" and "man" from Alpine images for size

```
postgres  9.6-alpine-after    83c9edfc60a1        2 minutes ago       32.53 MB
postgres  9.6-alpine-before   56409b6ffc83        9 minutes ago       49.43 MB
```
This commit is contained in:
Tianon Gravi
2016-12-21 14:48:30 -08:00
parent a00e979002
commit a7ba7f2b2d
6 changed files with 12 additions and 0 deletions

View File

@@ -106,6 +106,8 @@ RUN set -ex \
&& rm -rf \
/usr/src/postgresql \
/usr/local/include/* \
/usr/local/share/doc \
/usr/local/share/man \
&& find /usr/local -name '*.a' -delete
# make the sample config easier to munge (and "correct by default")

View File

@@ -106,6 +106,8 @@ RUN set -ex \
&& rm -rf \
/usr/src/postgresql \
/usr/local/include/* \
/usr/local/share/doc \
/usr/local/share/man \
&& find /usr/local -name '*.a' -delete
# make the sample config easier to munge (and "correct by default")

View File

@@ -106,6 +106,8 @@ RUN set -ex \
&& rm -rf \
/usr/src/postgresql \
/usr/local/include/* \
/usr/local/share/doc \
/usr/local/share/man \
&& find /usr/local -name '*.a' -delete
# make the sample config easier to munge (and "correct by default")

View File

@@ -106,6 +106,8 @@ RUN set -ex \
&& rm -rf \
/usr/src/postgresql \
/usr/local/include/* \
/usr/local/share/doc \
/usr/local/share/man \
&& find /usr/local -name '*.a' -delete
# make the sample config easier to munge (and "correct by default")

View File

@@ -106,6 +106,8 @@ RUN set -ex \
&& rm -rf \
/usr/src/postgresql \
/usr/local/include/* \
/usr/local/share/doc \
/usr/local/share/man \
&& find /usr/local -name '*.a' -delete
# make the sample config easier to munge (and "correct by default")

View File

@@ -106,6 +106,8 @@ RUN set -ex \
&& rm -rf \
/usr/src/postgresql \
/usr/local/include/* \
/usr/local/share/doc \
/usr/local/share/man \
&& find /usr/local -name '*.a' -delete
# make the sample config easier to munge (and "correct by default")