File tree Expand file tree Collapse file tree 18 files changed +102
-2
lines changed Expand file tree Collapse file tree 18 files changed +102
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,15 @@ ENV PYTHON_VERSION 2.7.12
1616ENV PYTHON_PIP_VERSION 8.1.2
1717
1818RUN set -ex \
19+ && buildDeps=' \
20+ tcl-dev \
21+ tk-dev \
22+ ' \
23+ && runDeps=' \
24+ tcl \
25+ tk \
26+ ' \
27+ && apt-get update && apt-get install -y $runDeps $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
1928 && curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
2029 && curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
2130 && export GNUPGHOME="$(mktemp -d)" \
@@ -42,6 +51,7 @@ RUN set -ex \
4251 -o \
4352 \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
4453 \) -exec rm -rf '{}' + \
54+ && apt-get purge -y --auto-remove $buildDeps \
4555 && rm -rf /usr/src/python ~/.cache
4656
4757# install "virtualenv", since the vast majority of users of this image will want it
Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ RUN set -ex \
3535 pax-utils \
3636 readline-dev \
3737 sqlite-dev \
38+ tcl-dev \
39+ tk-dev \
3840 zlib-dev \
3941 && cd /usr/src/python \
4042 && ./configure \
Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ RUN set -ex \
3232 libsqlite3-dev \
3333 libssl-dev \
3434 make \
35+ tcl-dev \
36+ tk-dev \
3537 xz-utils \
3638 zlib1g-dev \
3739 ' \
Original file line number Diff line number Diff line change @@ -16,6 +16,15 @@ ENV PYTHON_VERSION 2.7.12
1616ENV PYTHON_PIP_VERSION 8.1.2
1717
1818RUN set -ex \
19+ && buildDeps=' \
20+ tcl-dev \
21+ tk-dev \
22+ ' \
23+ && runDeps=' \
24+ tcl \
25+ tk \
26+ ' \
27+ && apt-get update && apt-get install -y $runDeps $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
1928 && curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
2029 && curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
2130 && export GNUPGHOME="$(mktemp -d)" \
@@ -42,6 +51,7 @@ RUN set -ex \
4251 -o \
4352 \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
4453 \) -exec rm -rf '{}' + \
54+ && apt-get purge -y --auto-remove $buildDeps \
4555 && rm -rf /usr/src/python ~/.cache
4656
4757# install "virtualenv", since the vast majority of users of this image will want it
Original file line number Diff line number Diff line change @@ -16,6 +16,15 @@ ENV PYTHON_VERSION 3.3.6
1616ENV PYTHON_PIP_VERSION 8.1.2
1717
1818RUN set -ex \
19+ && buildDeps=' \
20+ tcl-dev \
21+ tk-dev \
22+ ' \
23+ && runDeps=' \
24+ tcl \
25+ tk \
26+ ' \
27+ && apt-get update && apt-get install -y $runDeps $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
1928 && curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
2029 && curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
2130 && export GNUPGHOME="$(mktemp -d)" \
@@ -42,6 +51,7 @@ RUN set -ex \
4251 -o \
4352 \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
4453 \) -exec rm -rf '{}' + \
54+ && apt-get purge -y --auto-remove $buildDeps \
4555 && rm -rf /usr/src/python ~/.cache
4656
4757# make some useful symlinks that are expected to exist
Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ RUN set -ex \
3535 pax-utils \
3636 readline-dev \
3737 sqlite-dev \
38+ tcl-dev \
39+ tk-dev \
3840 xz-dev \
3941 zlib-dev \
4042 && cd /usr/src/python \
Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ RUN set -ex \
3333 libsqlite3-dev \
3434 libssl-dev \
3535 make \
36+ tcl-dev \
37+ tk-dev \
3638 xz-utils \
3739 zlib1g-dev \
3840 ' \
Original file line number Diff line number Diff line change @@ -16,6 +16,15 @@ ENV PYTHON_VERSION 3.3.6
1616ENV PYTHON_PIP_VERSION 8.1.2
1717
1818RUN set -ex \
19+ && buildDeps=' \
20+ tcl-dev \
21+ tk-dev \
22+ ' \
23+ && runDeps=' \
24+ tcl \
25+ tk \
26+ ' \
27+ && apt-get update && apt-get install -y $runDeps $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
1928 && curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
2029 && curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
2130 && export GNUPGHOME="$(mktemp -d)" \
@@ -42,7 +51,8 @@ RUN set -ex \
4251 -o \
4352 \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
4453 \) -exec rm -rf '{}' + \
45- && rm -rf /usr/src/python ~/.cache
54+ && apt-get purge -y --auto-remove $buildDeps \
55+ && rm -rf /usr/src/python ~/.cache
4656
4757# make some useful symlinks that are expected to exist
4858RUN cd /usr/local/bin \
Original file line number Diff line number Diff line change @@ -16,6 +16,15 @@ ENV PYTHON_VERSION 3.4.5
1616ENV PYTHON_PIP_VERSION 8.1.2
1717
1818RUN set -ex \
19+ && buildDeps=' \
20+ tcl-dev \
21+ tk-dev \
22+ ' \
23+ && runDeps=' \
24+ tcl \
25+ tk \
26+ ' \
27+ && apt-get update && apt-get install -y $runDeps $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
1928 && curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \
2029 && curl -fSL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \
2130 && export GNUPGHOME="$(mktemp -d)" \
@@ -41,6 +50,7 @@ RUN set -ex \
4150 -o \
4251 \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
4352 \) -exec rm -rf '{}' + \
53+ && apt-get purge -y --auto-remove $buildDeps \
4454 && rm -rf /usr/src/python ~/.cache
4555
4656# make some useful symlinks that are expected to exist
Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ RUN set -ex \
3636 pax-utils \
3737 readline-dev \
3838 sqlite-dev \
39+ tcl-dev \
40+ tk-dev \
3941 xz-dev \
4042 zlib-dev \
4143 && cd /usr/src/python \
You can’t perform that action at this time.
0 commit comments