forked from dalibo/docker-buildpack-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.bullseye
47 lines (41 loc) · 1 KB
/
Dockerfile.bullseye
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
FROM dalibo/buildpack:bullseye
RUN set -ex; \
apt-get update -y; \
apt-get install -y --no-install-recommends \
docker.io \
python2.7 \
python3-pip \
python3-venv \
npm \
; \
apt-get clean; \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*; \
:
RUN set -ex; \
npm install --global \
pyright \
; \
:
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 ; \
rm -rf ~/.cache; \
:
RUN set -ex; \
pip3 --no-cache-dir install --upgrade \
flake8 \
pep440deb \
twine \
"virtualenv<20" \
virtualenv-tools \
; \
rm -rf ~/.cache; \
:
RUN set -ex; \
curl -sSL https://install.python-poetry.org | python3 - --force --yes --version 1.1.11; \
ln -sv /root/.local/bin/poetry /usr/local/bin/poetry; \
poetry --version; \
rm -rf ~/.cache; \
: