forked from dalibo/docker-buildpack-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.rockylinux8
45 lines (39 loc) · 1.15 KB
/
Dockerfile.rockylinux8
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
FROM dalibo/buildpack:rockylinux8
RUN set -ex; \
yum -q -y install \
cyrus-sasl-md5 \
cyrus-sasl-devel \
gcc \
openldap-clients \
openldap-devel \
python2 \
python3-virtualenv \
python36 \
python38 \
; \
yum clean all ; \
:
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 - --ignore-installed ; \
pip2 --version; \
rm -rf ~/.cache/; \
:
RUN set -ex; \
curl -sSL https://bootstrap.pypa.io/pip/3.6/get-pip.py | python3.6 - --ignore-installed ; \
pip3.6 --version; \
rm -rf ~/.cache/; \
:
RUN set -ex; \
curl -sSL https://bootstrap.pypa.io/pip/get-pip.py | python3.8 - --ignore-installed ; \
pip3.8 --version; \
pip3.8 install flake8 setuptools wheel; \
rm -rf ~/.cache/; \
:
# See https://github.com/sdispater/poetry/issues/721
RUN set -ex; \
curl -sSL https://install.python-poetry.org | python3.8 - --force --yes --version 1.1.13; \
ln -s /root/.local/bin/poetry /usr/local/bin/poetry; \
poetry --version; \
: