forked from CircleCI-Public/cimg-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.template
More file actions
43 lines (36 loc) · 1.11 KB
/
Dockerfile.template
File metadata and controls
43 lines (36 loc) · 1.11 KB
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
# vim:set ft=dockerfile:
FROM cimg/%%PARENT%%:2020.09
LABEL maintainer="Community/Partner Engineering <community-partner@circleci.com>"
ENV PYENV_ROOT=/home/circleci/.pyenv \
PATH=/home/circleci/.pyenv/shims:/home/circleci/.pyenv/bin:/home/circleci/.poetry/bin:$PATH
RUN sudo apt-get update && sudo apt-get install -y \
build-essential \
ca-certificates \
curl \
git \
libbz2-dev \
liblzma-dev \
libncurses5-dev \
libncursesw5-dev \
libreadline-dev \
libffi-dev \
libsqlite3-dev \
libssl-dev \
libxml2-dev \
libxmlsec1-dev \
llvm \
make \
python-openssl \
tk-dev \
wget \
xz-utils \
zlib1g-dev && \
curl https://pyenv.run | bash && \
sudo rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN pyenv install %%MAIN_VERSION%% && pyenv global %%MAIN_VERSION%%
RUN python --version && \
pip --version && \
# This installs pipenv at the latest version, currently 2020.6.2
pip install pipenv wheel
# This installs version poetry at the latest version. poetry is updated about twice a month.
RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python