-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.template
51 lines (41 loc) · 1.11 KB
/
Dockerfile.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# This file has been generated by setup.sh script
FROM sawkita/apt-python:latest
LABEL MAINTAINER="Andrea Cervesato <andrea.cervesato@mailbox.org>"
ENV DEBIAN_FRONTEND noninteractive
ENV TOX_VERSION 3.14.6
# http://bugs.python.org/issue19846
ENV LANG C.UTF-8
ENV PYTHON_2_PKG \
python2.3-dev \
python2.4-dev \
python2.5-dev \
python2.6-dev \
python2.7-dev
ENV PYTHON_3_PKG \
python3.1-dev \
python3.2-dev \
python3.3-dev \
python3.4-dev \
python3.5-dev \
python3.6-dev \
python3.7-dev \
python3.8-dev \
python3.9-dev
ENV PYTHON_all_PKG \
${PYTHON_2_PKG} \
${PYTHON_3_PKG}
# install python according with PYTHON_VERSION argument
RUN apt-get update && apt-get install --no-install-recommends -y \
wget \
ca-certificates \
%%PYTHON_PKG%% \
&& apt-get purge -y --auto-remove \
&& rm -rf /var/lib/apt/lists/*
# install tox
RUN wget https://bootstrap.pypa.io/get-pip.py \
&& %%PYTHON_DEFAULT_VERSION%% get-pip.py --no-cache-dir \
&& rm -f get-pip.py \
&& pip install \
--no-cache-dir \
tox==$TOX_VERSION \
&& rm -rf /root/.cache