-
Notifications
You must be signed in to change notification settings - Fork 13
/
Dockerfile
66 lines (55 loc) · 1.5 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
FROM debian:stretch-slim
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
ca-certificates \
curl \
fontconfig \
gcc \
git \
iputils-ping \
libbz2-dev \
libdb5.3-dev \
libevent-dev \
libexpat1-dev \
libffi-dev \
libgdbm-dev \
liblzma-dev \
libncurses-dev \
libncurses5-dev \
libncursesw5-dev \
libreadline-dev \
libsqlite3-dev \
libssl-dev \
locales \
make \
procps \
python \
python-pip \
python-setuptools \
ssh \
vim \
wget \
zlib1g-dev
RUN apt-get install -y --no-install-recommends \
libssl1.0-dev
RUN git clone git://github.com/yyuu/pyenv.git ~/.pyenv --depth=20 \
&& echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> ~/.bashrc \
&& echo 'eval "$(pyenv init -)"' >> ~/.bashrc
# Speed up (optional)
# RUN cd ~/.pyenv && src/configure && make -C src || true
RUN git clone https://github.com/magicmonty/bash-git-prompt.git ~/.bash-git-prompt --depth=20 \
&& echo 'GIT_PROMPT_ONLY_IN_REPO=1' >> ~/.bashrc \
&& echo 'source ~/.bash-git-prompt/gitprompt.sh' >> ~/.bashrc
ENV PYVERS="3.7.16 3.11.1 3.10.9 3.9.16 3.8.16"
RUN for i in ${PYVERS}; do \
~/.pyenv/bin/pyenv install ${i}; \
echo ${i} >> ~/.pyver-installed-okay; \
done
RUN ~/.pyenv/bin/pyenv global $(cat ~/.pyver-installed-okay) \
&& ~/.pyenv/bin/pyenv rehash
RUN python -m pip install wheel \
&& python -m pip install tox \
&& ~/.pyenv/bin/pyenv rehash
RUN git clone https://github.com/Kintyre/ksconf.git
RUN bash