forked from dalibo/docker-buildpack-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.buster
More file actions
35 lines (31 loc) · 788 Bytes
/
Dockerfile.buster
File metadata and controls
35 lines (31 loc) · 788 Bytes
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
FROM dalibo/buildpack:buster
RUN set -ex; \
apt-get update -y; \
apt-get install -y --no-install-recommends \
python3.7 \
python3-distutils \
python2.7 \
; \
apt-get clean; \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*; \
:
ENV PIP_DISABLE_PIP_VERSION_CHECK 1
ENV PIP_NO_PYTHON_VERSION_WARNING 1
RUN set -ex; \
curl -sSL https://bootstrap.pypa.io/pip/2.7/get-pip.py | python2.7 ; \
pip2 --version; \
pip2 install --upgrade \
pytest \
; \
rm -rf ~/.cache; \
:
RUN set -ex; \
curl -sSL https://bootstrap.pypa.io/pip/get-pip.py | python3.7; \
pip3 --version; \
pip3 install --upgrade \
flake8 \
"virtualenv<20" \
virtualenv-tools \
; \
rm -rf ~/.cache; \
: