-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
27 lines (24 loc) · 1.24 KB
/
Dockerfile
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
FROM ubuntu:19.04
ENV pythonVersions='python2.7 python3.7 python3.8'
ENV pythonVenvVersions='python3.7 python3.8'
COPY docker-compose /usr/local/bin/docker-compose
RUN ln -s /usr/local/bin/virtualenv-2.7 /usr/local/bin/virtualenv
RUN set -x \
&& apt-get update \
&& apt-get install -y --no-install-recommends $pythonVersions \
&& apt-get install -y $(for pyver in $pythonVersions; do echo ${pyver}-dev; done) \
&& apt-get install -y $(for pyver in $pythonVenvVersions; do echo ${pyver}-venv; done) \
&& apt-get install -y python3-pip \
&& apt-get install time netcat gettext libjpeg-dev curl git-core build-essential \
make build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev -y \
&& for pybin in $pythonVersions; do ${pybin} -m pip install -U pip tox; done \
&& apt-get remove -y python3-pip \
&& apt-get install -y \
apt-transport-https \
ca-certificates \
software-properties-common \
&& curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - \
&& add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" \
&& apt-get install -y docker-ce \
&& rm -rf /var/lib/apt/lists/*