-
Notifications
You must be signed in to change notification settings - Fork 17
/
Dockerfile
36 lines (31 loc) · 833 Bytes
/
Dockerfile
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
FROM python:slim
ENV PYENV_ROOT=/root/.pyenv
ENV PATH $PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
curl \
git \
libbz2-dev \
libffi-dev \
liblzma-dev \
libncurses5-dev \
libncursesw5-dev \
libreadline-dev \
libsqlite3-dev \
libssl-dev \
llvm \
make \
openssl \
tk-dev \
wget \
xz-utils \
zlib1g-dev \
cargo \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN git clone --depth 1 https://github.com/pyenv/pyenv.git $PYENV_ROOT && \
rm -rfv $PYENV_ROOT/.git
RUN git clone https://github.com/momo-lab/xxenv-latest.git $PYENV_ROOT/plugins/xxenv-latest
ENTRYPOINT ["/entrypoint.sh"]
COPY entrypoint.sh /entrypoint.sh