diff --git a/2.7/Dockerfile b/2.7/Dockerfile index 27b3d2c..7d1e72c 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 f7e62c5..4f74d09 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 0d0e557..244cd20 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 3673974..9dcb892 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 2417f4b..c01dd68 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 f081ebc..832bc1c 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 9c5cfbc..d712401 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 bae993e..a4225e2 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 094a16b..b34bc98 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 b4b71c0..5451c0d 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 c48f3eb..7c891f6 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 84603b4..9f22989 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 c88c9a9..44e6f0e 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 51a4819..48cdd65 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 9e54379..cb6d1e1 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 a75fde7..115d13a 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 6fdb503..ed2cbb1 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 ac090f8..2bc29a1 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 \ ' \