Skip to content

Commit

Permalink
Decrease image sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
cytopia committed Nov 1, 2018
1 parent 10e114f commit b257ffb
Show file tree
Hide file tree
Showing 31 changed files with 2,960 additions and 70 deletions.
288 changes: 286 additions & 2 deletions Dockerfiles/mods/Dockerfile-5.2

Large diffs are not rendered by default.

316 changes: 314 additions & 2 deletions Dockerfiles/mods/Dockerfile-5.3

Large diffs are not rendered by default.

320 changes: 318 additions & 2 deletions Dockerfiles/mods/Dockerfile-5.4

Large diffs are not rendered by default.

320 changes: 318 additions & 2 deletions Dockerfiles/mods/Dockerfile-5.5

Large diffs are not rendered by default.

316 changes: 314 additions & 2 deletions Dockerfiles/mods/Dockerfile-5.6

Large diffs are not rendered by default.

308 changes: 306 additions & 2 deletions Dockerfiles/mods/Dockerfile-7.0

Large diffs are not rendered by default.

312 changes: 310 additions & 2 deletions Dockerfiles/mods/Dockerfile-7.1

Large diffs are not rendered by default.

316 changes: 314 additions & 2 deletions Dockerfiles/mods/Dockerfile-7.2

Large diffs are not rendered by default.

292 changes: 290 additions & 2 deletions Dockerfiles/mods/Dockerfile-7.3

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion Dockerfiles/prod/Dockerfile-5.2
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ RUN set -x \
\
&& rm -rf /etc/supervisor* \
&& mkdir -p /etc/supervisor/conf.d \
&& mkdir -p /var/log/supervisor
&& mkdir -p /var/log/supervisor \
\
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true



Expand Down
6 changes: 5 additions & 1 deletion Dockerfiles/prod/Dockerfile-5.3
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ RUN set -x \
\
&& rm -rf /etc/supervisor* \
&& mkdir -p /etc/supervisor/conf.d \
&& mkdir -p /var/log/supervisor
&& mkdir -p /var/log/supervisor \
\
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true



Expand Down
6 changes: 5 additions & 1 deletion Dockerfiles/prod/Dockerfile-5.4
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ RUN set -x \
\
&& rm -rf /etc/supervisor* \
&& mkdir -p /etc/supervisor/conf.d \
&& mkdir -p /var/log/supervisor
&& mkdir -p /var/log/supervisor \
\
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true



Expand Down
6 changes: 5 additions & 1 deletion Dockerfiles/prod/Dockerfile-5.5
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ RUN set -x \
\
&& rm -rf /etc/supervisor* \
&& mkdir -p /etc/supervisor/conf.d \
&& mkdir -p /var/log/supervisor
&& mkdir -p /var/log/supervisor \
\
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true



Expand Down
6 changes: 5 additions & 1 deletion Dockerfiles/prod/Dockerfile-5.6
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ RUN set -x \
\
&& rm -rf /etc/supervisor* \
&& mkdir -p /etc/supervisor/conf.d \
&& mkdir -p /var/log/supervisor
&& mkdir -p /var/log/supervisor \
\
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true



Expand Down
6 changes: 5 additions & 1 deletion Dockerfiles/prod/Dockerfile-7.0
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ RUN set -x \
\
&& rm -rf /etc/supervisor* \
&& mkdir -p /etc/supervisor/conf.d \
&& mkdir -p /var/log/supervisor
&& mkdir -p /var/log/supervisor \
\
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true



Expand Down
6 changes: 5 additions & 1 deletion Dockerfiles/prod/Dockerfile-7.1
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ RUN set -x \
\
&& rm -rf /etc/supervisor* \
&& mkdir -p /etc/supervisor/conf.d \
&& mkdir -p /var/log/supervisor
&& mkdir -p /var/log/supervisor \
\
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true



Expand Down
6 changes: 5 additions & 1 deletion Dockerfiles/prod/Dockerfile-7.2
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ RUN set -x \
\
&& rm -rf /etc/supervisor* \
&& mkdir -p /etc/supervisor/conf.d \
&& mkdir -p /var/log/supervisor
&& mkdir -p /var/log/supervisor \
\
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true



Expand Down
6 changes: 5 additions & 1 deletion Dockerfiles/prod/Dockerfile-7.3
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ RUN set -x \
\
&& rm -rf /etc/supervisor* \
&& mkdir -p /etc/supervisor/conf.d \
&& mkdir -p /var/log/supervisor
&& mkdir -p /var/log/supervisor \
\
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true



Expand Down
17 changes: 13 additions & 4 deletions Dockerfiles/work/Dockerfile-5.2
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ RUN set -x \
yarn \
zsh \
&& DEBIAN_FRONTEND=noninteractive apt-get purge -qq -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false apt-utils \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/* \
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true


RUN set -x \
Expand Down Expand Up @@ -193,9 +196,13 @@ RUN set -x \
# webpack
&& npm install -g webpack webpack-cli \
# yamllint
&& apt update && apt install --no-install-recommends --no-install-suggests -y libpython-dev python-setuptools libyaml-dev \
&& DEBIAN_FRONTEND=noninteractive apt-get update -qq \
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests libpython-dev python-setuptools libyaml-dev \
\
&& pip install --no-cache-dir yamllint \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps libpython-dev python-setuptools libyaml-dev && rm -rf /var/lib/apt/lists/* \
&& DEBIAN_FRONTEND=noninteractive apt-get purge -qq -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false libpython-dev python-setuptools libyaml-dev \
&& rm -rf /var/lib/apt/lists/* \
\
# cleanup
&& rm -rf /home/${MY_USER}/.*json \
&& rm -rf /home/${MY_USER}/.cache \
Expand All @@ -217,7 +224,9 @@ RUN set -x \
\
&& rm -rf /tmp/* \
\
&& true
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true


###
Expand Down
17 changes: 13 additions & 4 deletions Dockerfiles/work/Dockerfile-5.3
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ RUN set -x \
yarn \
zsh \
&& DEBIAN_FRONTEND=noninteractive apt-get purge -qq -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false apt-utils \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/* \
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true


RUN set -x \
Expand Down Expand Up @@ -230,9 +233,13 @@ RUN set -x \
&& curl https://github.com/wp-cli/wp-cli/releases/download/v1.5.1/wp-cli-1.5.1.phar -L -o /usr/local/bin/wp \
&& chmod +x /usr/local/bin/wp \
# yamllint
&& apt update && apt install --no-install-recommends --no-install-suggests -y libpython-dev python-setuptools libyaml-dev \
&& DEBIAN_FRONTEND=noninteractive apt-get update -qq \
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests libpython-dev python-setuptools libyaml-dev \
\
&& pip install --no-cache-dir yamllint \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps libpython-dev python-setuptools libyaml-dev && rm -rf /var/lib/apt/lists/* \
&& DEBIAN_FRONTEND=noninteractive apt-get purge -qq -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false libpython-dev python-setuptools libyaml-dev \
&& rm -rf /var/lib/apt/lists/* \
\
# cleanup
&& rm -rf /home/${MY_USER}/.*json \
&& rm -rf /home/${MY_USER}/.cache \
Expand All @@ -254,7 +261,9 @@ RUN set -x \
\
&& rm -rf /tmp/* \
\
&& true
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true


###
Expand Down
17 changes: 13 additions & 4 deletions Dockerfiles/work/Dockerfile-5.4
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ RUN set -x \
yarn \
zsh \
&& DEBIAN_FRONTEND=noninteractive apt-get purge -qq -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false apt-utils \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/* \
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true


RUN set -x \
Expand Down Expand Up @@ -259,9 +262,13 @@ RUN set -x \
&& curl https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -L -o /usr/local/bin/wp \
&& chmod +x /usr/local/bin/wp \
# yamllint
&& apt update && apt install --no-install-recommends --no-install-suggests -y libpython-dev python-setuptools libyaml-dev \
&& DEBIAN_FRONTEND=noninteractive apt-get update -qq \
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests libpython-dev python-setuptools libyaml-dev \
\
&& pip install --no-cache-dir yamllint \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps libpython-dev python-setuptools libyaml-dev && rm -rf /var/lib/apt/lists/* \
&& DEBIAN_FRONTEND=noninteractive apt-get purge -qq -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false libpython-dev python-setuptools libyaml-dev \
&& rm -rf /var/lib/apt/lists/* \
\
# cleanup
&& rm -rf /home/${MY_USER}/.*json \
&& rm -rf /home/${MY_USER}/.cache \
Expand All @@ -283,7 +290,9 @@ RUN set -x \
\
&& rm -rf /tmp/* \
\
&& true
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true


###
Expand Down
17 changes: 13 additions & 4 deletions Dockerfiles/work/Dockerfile-5.5
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ RUN set -x \
yarn \
zsh \
&& DEBIAN_FRONTEND=noninteractive apt-get purge -qq -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false apt-utils \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/* \
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true


RUN set -x \
Expand Down Expand Up @@ -270,9 +273,13 @@ RUN set -x \
&& curl https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -L -o /usr/local/bin/wp \
&& chmod +x /usr/local/bin/wp \
# yamllint
&& apt update && apt install --no-install-recommends --no-install-suggests -y libpython-dev python-setuptools libyaml-dev \
&& DEBIAN_FRONTEND=noninteractive apt-get update -qq \
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests libpython-dev python-setuptools libyaml-dev \
\
&& pip install --no-cache-dir yamllint \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps libpython-dev python-setuptools libyaml-dev && rm -rf /var/lib/apt/lists/* \
&& DEBIAN_FRONTEND=noninteractive apt-get purge -qq -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false libpython-dev python-setuptools libyaml-dev \
&& rm -rf /var/lib/apt/lists/* \
\
# cleanup
&& rm -rf /home/${MY_USER}/.*json \
&& rm -rf /home/${MY_USER}/.cache \
Expand All @@ -294,7 +301,9 @@ RUN set -x \
\
&& rm -rf /tmp/* \
\
&& true
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true


###
Expand Down
17 changes: 13 additions & 4 deletions Dockerfiles/work/Dockerfile-5.6
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ RUN set -x \
yarn \
zsh \
&& DEBIAN_FRONTEND=noninteractive apt-get purge -qq -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false apt-utils \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/* \
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true


RUN set -x \
Expand Down Expand Up @@ -283,9 +286,13 @@ RUN set -x \
&& curl https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -L -o /usr/local/bin/wp \
&& chmod +x /usr/local/bin/wp \
# yamllint
&& apt update && apt install --no-install-recommends --no-install-suggests -y libpython-dev python-setuptools libyaml-dev \
&& DEBIAN_FRONTEND=noninteractive apt-get update -qq \
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests libpython-dev python-setuptools libyaml-dev \
\
&& pip install --no-cache-dir yamllint \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps libpython-dev python-setuptools libyaml-dev && rm -rf /var/lib/apt/lists/* \
&& DEBIAN_FRONTEND=noninteractive apt-get purge -qq -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false libpython-dev python-setuptools libyaml-dev \
&& rm -rf /var/lib/apt/lists/* \
\
# cleanup
&& rm -rf /home/${MY_USER}/.*json \
&& rm -rf /home/${MY_USER}/.cache \
Expand All @@ -307,7 +314,9 @@ RUN set -x \
\
&& rm -rf /tmp/* \
\
&& true
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true


###
Expand Down
17 changes: 13 additions & 4 deletions Dockerfiles/work/Dockerfile-7.0
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ RUN set -x \
yarn \
zsh \
&& DEBIAN_FRONTEND=noninteractive apt-get purge -qq -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false apt-utils \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/* \
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true


RUN set -x \
Expand Down Expand Up @@ -283,9 +286,13 @@ RUN set -x \
&& curl https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -L -o /usr/local/bin/wp \
&& chmod +x /usr/local/bin/wp \
# yamllint
&& apt update && apt install --no-install-recommends --no-install-suggests -y libpython-dev python-setuptools libyaml-dev \
&& DEBIAN_FRONTEND=noninteractive apt-get update -qq \
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests libpython-dev python-setuptools libyaml-dev \
\
&& pip install --no-cache-dir yamllint \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps libpython-dev python-setuptools libyaml-dev && rm -rf /var/lib/apt/lists/* \
&& DEBIAN_FRONTEND=noninteractive apt-get purge -qq -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false libpython-dev python-setuptools libyaml-dev \
&& rm -rf /var/lib/apt/lists/* \
\
# cleanup
&& rm -rf /home/${MY_USER}/.*json \
&& rm -rf /home/${MY_USER}/.cache \
Expand All @@ -307,7 +314,9 @@ RUN set -x \
\
&& rm -rf /tmp/* \
\
&& true
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true


###
Expand Down
17 changes: 13 additions & 4 deletions Dockerfiles/work/Dockerfile-7.1
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ RUN set -x \
yarn \
zsh \
&& DEBIAN_FRONTEND=noninteractive apt-get purge -qq -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false apt-utils \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/* \
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true


RUN set -x \
Expand Down Expand Up @@ -283,9 +286,13 @@ RUN set -x \
&& curl https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -L -o /usr/local/bin/wp \
&& chmod +x /usr/local/bin/wp \
# yamllint
&& apt update && apt install --no-install-recommends --no-install-suggests -y libpython-dev python-setuptools libyaml-dev \
&& DEBIAN_FRONTEND=noninteractive apt-get update -qq \
&& DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends --no-install-suggests libpython-dev python-setuptools libyaml-dev \
\
&& pip install --no-cache-dir yamllint \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps libpython-dev python-setuptools libyaml-dev && rm -rf /var/lib/apt/lists/* \
&& DEBIAN_FRONTEND=noninteractive apt-get purge -qq -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false libpython-dev python-setuptools libyaml-dev \
&& rm -rf /var/lib/apt/lists/* \
\
# cleanup
&& rm -rf /home/${MY_USER}/.*json \
&& rm -rf /home/${MY_USER}/.cache \
Expand All @@ -307,7 +314,9 @@ RUN set -x \
\
&& rm -rf /tmp/* \
\
&& true
&& find /usr/local/bin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/lib -type f -exce strip --strip-all -p '{}' 2>/dev/null || true \
&& find /usr/local/sbin -type f -exce strip --strip-all -p '{}' 2>/dev/null || true


###
Expand Down
Loading

0 comments on commit b257ffb

Please sign in to comment.