forked from dalibo/docker-buildpack-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.centos7
39 lines (35 loc) · 1.17 KB
/
Dockerfile.centos7
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
FROM dalibo/buildpack:centos7
RUN set -ex; \
yum -q -y install \
cyrus-sasl-md5 \
cyrus-sasl-devel \
gcc \
openldap-clients \
openldap-devel \
python-devel \
python36 \
python36-devel \
python36-virtualenv \
libev-devel \
libvirt-devel \
; \
yum clean all ; \
:
ENV PIP_DISABLE_PIP_VERSION_CHECK 1
ENV PIP_NO_PYTHON_VERSION_WARNING 1
RUN set -ex; \
echo /usr/local/lib/python2.7/site-packages >> /usr/lib/python2.7/site-packages/local.pth; \
echo /usr/local/lib64/python2.7/site-packages >> /usr/lib/python2.7/site-packages/local.pth; \
curl -sSL https://bootstrap.pypa.io/pip/2.7/get-pip.py | python2 - --ignore-installed ; \
pip2 --version; \
curl -sSL https://bootstrap.pypa.io/pip/3.6/get-pip.py | python3 - --ignore-installed ; \
pip3 --version; \
pip3 install flake8; \
rm -rf ~/.cache/; \
:
# See https://github.com/sdispater/poetry/issues/721
RUN set -ex; \
curl -sSL https://install.python-poetry.org | python3 - --force --yes --version 1.1.11; \
ln -s /root/.local/bin/poetry /usr/local/bin/poetry; \
poetry --version; \
: