Skip to content

Commit 94652e7

Browse files
authored
Merge pull request #127 from jstewmon/tkinter
Install tk-dev and tcl-dev before building python
2 parents cfe3b11 + 8d03a50 commit 94652e7

File tree

18 files changed

+100
-0
lines changed

18 files changed

+100
-0
lines changed

2.7/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ ENV PYTHON_VERSION 2.7.12
1616
ENV PYTHON_PIP_VERSION 8.1.2
1717

1818
RUN 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

2.7/alpine/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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 \

2.7/slim/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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
' \

2.7/wheezy/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ ENV PYTHON_VERSION 2.7.12
1616
ENV PYTHON_PIP_VERSION 8.1.2
1717

1818
RUN 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

3.3/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ ENV PYTHON_VERSION 3.3.6
1616
ENV PYTHON_PIP_VERSION 8.1.2
1717

1818
RUN 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

3.3/alpine/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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 \

3.3/slim/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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
' \

3.3/wheezy/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ ENV PYTHON_VERSION 3.3.6
1616
ENV PYTHON_PIP_VERSION 8.1.2
1717

1818
RUN 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

3.4/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ ENV PYTHON_VERSION 3.4.5
1616
ENV PYTHON_PIP_VERSION 8.1.2
1717

1818
RUN 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

3.4/alpine/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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 \

3.4/slim/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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
' \

3.4/wheezy/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ ENV PYTHON_VERSION 3.4.5
1616
ENV PYTHON_PIP_VERSION 8.1.2
1717

1818
RUN 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

3.5/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ ENV PYTHON_VERSION 3.5.2
1616
ENV PYTHON_PIP_VERSION 8.1.2
1717

1818
RUN 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

3.5/alpine/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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 \

3.5/slim/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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
' \

3.6/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ ENV PYTHON_VERSION 3.6.0a2
1616
ENV PYTHON_PIP_VERSION 8.1.2
1717

1818
RUN 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

3.6/alpine/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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 \

3.6/slim/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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
' \

0 commit comments

Comments
 (0)