-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathDockerfile.template
56 lines (47 loc) · 1.69 KB
/
Dockerfile.template
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
48
49
50
51
52
53
54
55
56
# vim:set ft=dockerfile:
# Do not edit individual Dockerfiles manually. Instead, please make changes to the Dockerfile.template, which will be used by the build script to generate Dockerfiles.
# By policy, the base image tag should be a quarterly tag unless there's a
# specific reason to use a different one. This means January, April, July, or
# October.
FROM cimg/%%PARENT%%:2024.02
LABEL maintainer="CircleCI Execution Team <[email protected]>"
ENV PYENV_ROOT=/home/circleci/.pyenv \
PATH=/home/circleci/.pyenv/shims:/home/circleci/.pyenv/bin:/home/circleci/.poetry/bin:$PATH \
PYTHON_VERSION=%%VERSION_FULL%% \
PIPENV_DEFAULT_PYTHON_VERSION=%%VERSION_FULL%%
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 \
python3-openssl \
tk-dev \
wget \
xz-utils \
zlib1g-dev && \
curl -sSL "https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer" | bash && \
sudo rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN env PYTHON_CONFIGURE_OPTS="--enable-shared --enable-optimizations" pyenv install %%MAIN_VERSION%% && pyenv global %%MAIN_VERSION%%
RUN python --version && \
pip --version && \
pip install --upgrade pip && \
pip --version && \
# This installs pipenv at the latest version
pip install pipenv wheel && \
pipenv --version && \
# Install pipx
pip install --user pipx
# This installs version poetry at the latest version. poetry is updated about twice a month.
RUN curl -sSL https://install.python-poetry.org | python -