diff --git a/2.7/Dockerfile b/2.7/Dockerfile index 27b3d2c41..7d1e72cc3 100644 --- a/2.7/Dockerfile +++ b/2.7/Dockerfile @@ -16,6 +16,15 @@ ENV PYTHON_VERSION 2.7.12 ENV PYTHON_PIP_VERSION 8.1.2 RUN set -ex \ + && buildDeps=' \ + tcl-dev \ + tk-dev \ + ' \ + && runDeps=' \ + tcl \ + tk \ + ' \ + && apt-get update && apt-get install -y $runDeps $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \ && curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \ && curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \ && export GNUPGHOME="$(mktemp -d)" \ @@ -42,6 +51,7 @@ RUN set -ex \ -o \ \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \ \) -exec rm -rf '{}' + \ + && apt-get purge -y --auto-remove $buildDeps \ && rm -rf /usr/src/python ~/.cache # install "virtualenv", since the vast majority of users of this image will want it diff --git a/2.7/alpine/Dockerfile b/2.7/alpine/Dockerfile index f7e62c533..4f74d0937 100644 --- a/2.7/alpine/Dockerfile +++ b/2.7/alpine/Dockerfile @@ -35,6 +35,8 @@ RUN set -ex \ pax-utils \ readline-dev \ sqlite-dev \ + tcl-dev \ + tk-dev \ zlib-dev \ && cd /usr/src/python \ && ./configure \ diff --git a/2.7/slim/Dockerfile b/2.7/slim/Dockerfile index 0d0e5571b..244cd20e1 100644 --- a/2.7/slim/Dockerfile +++ b/2.7/slim/Dockerfile @@ -32,6 +32,8 @@ RUN set -ex \ libsqlite3-dev \ libssl-dev \ make \ + tcl-dev \ + tk-dev \ xz-utils \ zlib1g-dev \ ' \ diff --git a/2.7/wheezy/Dockerfile b/2.7/wheezy/Dockerfile index 3673974ed..9dcb89283 100644 --- a/2.7/wheezy/Dockerfile +++ b/2.7/wheezy/Dockerfile @@ -16,6 +16,15 @@ ENV PYTHON_VERSION 2.7.12 ENV PYTHON_PIP_VERSION 8.1.2 RUN set -ex \ + && buildDeps=' \ + tcl-dev \ + tk-dev \ + ' \ + && runDeps=' \ + tcl \ + tk \ + ' \ + && apt-get update && apt-get install -y $runDeps $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \ && curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \ && curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \ && export GNUPGHOME="$(mktemp -d)" \ @@ -42,6 +51,7 @@ RUN set -ex \ -o \ \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \ \) -exec rm -rf '{}' + \ + && apt-get purge -y --auto-remove $buildDeps \ && rm -rf /usr/src/python ~/.cache # install "virtualenv", since the vast majority of users of this image will want it diff --git a/3.3/Dockerfile b/3.3/Dockerfile index 2417f4b59..c01dd6800 100644 --- a/3.3/Dockerfile +++ b/3.3/Dockerfile @@ -16,6 +16,15 @@ ENV PYTHON_VERSION 3.3.6 ENV PYTHON_PIP_VERSION 8.1.2 RUN set -ex \ + && buildDeps=' \ + tcl-dev \ + tk-dev \ + ' \ + && runDeps=' \ + tcl \ + tk \ + ' \ + && apt-get update && apt-get install -y $runDeps $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \ && curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \ && curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \ && export GNUPGHOME="$(mktemp -d)" \ @@ -42,6 +51,7 @@ RUN set -ex \ -o \ \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \ \) -exec rm -rf '{}' + \ + && apt-get purge -y --auto-remove $buildDeps \ && rm -rf /usr/src/python ~/.cache # make some useful symlinks that are expected to exist diff --git a/3.3/alpine/Dockerfile b/3.3/alpine/Dockerfile index f081ebcf4..832bc1cad 100644 --- a/3.3/alpine/Dockerfile +++ b/3.3/alpine/Dockerfile @@ -35,6 +35,8 @@ RUN set -ex \ pax-utils \ readline-dev \ sqlite-dev \ + tcl-dev \ + tk-dev \ xz-dev \ zlib-dev \ && cd /usr/src/python \ diff --git a/3.3/slim/Dockerfile b/3.3/slim/Dockerfile index 9c5cfbc89..d71240102 100644 --- a/3.3/slim/Dockerfile +++ b/3.3/slim/Dockerfile @@ -33,6 +33,8 @@ RUN set -ex \ libsqlite3-dev \ libssl-dev \ make \ + tcl-dev \ + tk-dev \ xz-utils \ zlib1g-dev \ ' \ diff --git a/3.3/wheezy/Dockerfile b/3.3/wheezy/Dockerfile index bae993ea8..a4225e22d 100644 --- a/3.3/wheezy/Dockerfile +++ b/3.3/wheezy/Dockerfile @@ -16,6 +16,15 @@ ENV PYTHON_VERSION 3.3.6 ENV PYTHON_PIP_VERSION 8.1.2 RUN set -ex \ + && buildDeps=' \ + tcl-dev \ + tk-dev \ + ' \ + && runDeps=' \ + tcl \ + tk \ + ' \ + && apt-get update && apt-get install -y $runDeps $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \ && curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \ && curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \ && export GNUPGHOME="$(mktemp -d)" \ @@ -42,6 +51,7 @@ RUN set -ex \ -o \ \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \ \) -exec rm -rf '{}' + \ + && apt-get purge -y --auto-remove $buildDeps \ && rm -rf /usr/src/python ~/.cache # make some useful symlinks that are expected to exist diff --git a/3.4/Dockerfile b/3.4/Dockerfile index 094a16b53..b34bc98ce 100644 --- a/3.4/Dockerfile +++ b/3.4/Dockerfile @@ -16,6 +16,15 @@ ENV PYTHON_VERSION 3.4.5 ENV PYTHON_PIP_VERSION 8.1.2 RUN set -ex \ + && buildDeps=' \ + tcl-dev \ + tk-dev \ + ' \ + && runDeps=' \ + tcl \ + tk \ + ' \ + && apt-get update && apt-get install -y $runDeps $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \ && curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \ && curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \ && export GNUPGHOME="$(mktemp -d)" \ @@ -41,6 +50,7 @@ RUN set -ex \ -o \ \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \ \) -exec rm -rf '{}' + \ + && apt-get purge -y --auto-remove $buildDeps \ && rm -rf /usr/src/python ~/.cache # make some useful symlinks that are expected to exist diff --git a/3.4/alpine/Dockerfile b/3.4/alpine/Dockerfile index b4b71c0d2..5451c0d27 100644 --- a/3.4/alpine/Dockerfile +++ b/3.4/alpine/Dockerfile @@ -36,6 +36,8 @@ RUN set -ex \ pax-utils \ readline-dev \ sqlite-dev \ + tcl-dev \ + tk-dev \ xz-dev \ zlib-dev \ && cd /usr/src/python \ diff --git a/3.4/slim/Dockerfile b/3.4/slim/Dockerfile index c48f3eb0b..7c891f66c 100644 --- a/3.4/slim/Dockerfile +++ b/3.4/slim/Dockerfile @@ -33,6 +33,8 @@ RUN set -ex \ libsqlite3-dev \ libssl-dev \ make \ + tcl-dev \ + tk-dev \ xz-utils \ zlib1g-dev \ ' \ diff --git a/3.4/wheezy/Dockerfile b/3.4/wheezy/Dockerfile index 84603b437..9f2298901 100644 --- a/3.4/wheezy/Dockerfile +++ b/3.4/wheezy/Dockerfile @@ -16,6 +16,15 @@ ENV PYTHON_VERSION 3.4.5 ENV PYTHON_PIP_VERSION 8.1.2 RUN set -ex \ + && buildDeps=' \ + tcl-dev \ + tk-dev \ + ' \ + && runDeps=' \ + tcl \ + tk \ + ' \ + && apt-get update && apt-get install -y $runDeps $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \ && curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \ && curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \ && export GNUPGHOME="$(mktemp -d)" \ @@ -41,6 +50,7 @@ RUN set -ex \ -o \ \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \ \) -exec rm -rf '{}' + \ + && apt-get purge -y --auto-remove $buildDeps \ && rm -rf /usr/src/python ~/.cache # make some useful symlinks that are expected to exist diff --git a/3.5/Dockerfile b/3.5/Dockerfile index c88c9a9f9..44e6f0ea7 100644 --- a/3.5/Dockerfile +++ b/3.5/Dockerfile @@ -16,6 +16,15 @@ ENV PYTHON_VERSION 3.5.2 ENV PYTHON_PIP_VERSION 8.1.2 RUN set -ex \ + && buildDeps=' \ + tcl-dev \ + tk-dev \ + ' \ + && runDeps=' \ + tcl \ + tk \ + ' \ + && apt-get update && apt-get install -y $runDeps $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \ && curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \ && curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \ && export GNUPGHOME="$(mktemp -d)" \ @@ -41,6 +50,7 @@ RUN set -ex \ -o \ \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \ \) -exec rm -rf '{}' + \ + && apt-get purge -y --auto-remove $buildDeps \ && rm -rf /usr/src/python ~/.cache # make some useful symlinks that are expected to exist diff --git a/3.5/alpine/Dockerfile b/3.5/alpine/Dockerfile index 51a481936..48cdd65e5 100644 --- a/3.5/alpine/Dockerfile +++ b/3.5/alpine/Dockerfile @@ -36,6 +36,8 @@ RUN set -ex \ pax-utils \ readline-dev \ sqlite-dev \ + tcl-dev \ + tk-dev \ xz-dev \ zlib-dev \ && cd /usr/src/python \ diff --git a/3.5/slim/Dockerfile b/3.5/slim/Dockerfile index 9e54379ac..cb6d1e1bc 100644 --- a/3.5/slim/Dockerfile +++ b/3.5/slim/Dockerfile @@ -33,6 +33,8 @@ RUN set -ex \ libsqlite3-dev \ libssl-dev \ make \ + tcl-dev \ + tk-dev \ xz-utils \ zlib1g-dev \ ' \ diff --git a/3.6/Dockerfile b/3.6/Dockerfile index a75fde754..115d13af2 100644 --- a/3.6/Dockerfile +++ b/3.6/Dockerfile @@ -16,6 +16,15 @@ ENV PYTHON_VERSION 3.6.0a2 ENV PYTHON_PIP_VERSION 8.1.2 RUN set -ex \ + && buildDeps=' \ + tcl-dev \ + tk-dev \ + ' \ + && runDeps=' \ + tcl \ + tk \ + ' \ + && apt-get update && apt-get install -y $runDeps $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \ && curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \ && curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \ && export GNUPGHOME="$(mktemp -d)" \ @@ -41,6 +50,7 @@ RUN set -ex \ -o \ \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \ \) -exec rm -rf '{}' + \ + && apt-get purge -y --auto-remove $buildDeps \ && rm -rf /usr/src/python ~/.cache # make some useful symlinks that are expected to exist diff --git a/3.6/alpine/Dockerfile b/3.6/alpine/Dockerfile index 6fdb503d5..ed2cbb156 100644 --- a/3.6/alpine/Dockerfile +++ b/3.6/alpine/Dockerfile @@ -36,6 +36,8 @@ RUN set -ex \ pax-utils \ readline-dev \ sqlite-dev \ + tcl-dev \ + tk-dev \ xz-dev \ zlib-dev \ && cd /usr/src/python \ diff --git a/3.6/slim/Dockerfile b/3.6/slim/Dockerfile index ac090f891..2bc29a1f1 100644 --- a/3.6/slim/Dockerfile +++ b/3.6/slim/Dockerfile @@ -33,6 +33,8 @@ RUN set -ex \ libsqlite3-dev \ libssl-dev \ make \ + tcl-dev \ + tk-dev \ xz-utils \ zlib1g-dev \ ' \