Skip to content

Commit 0e53cd2

Browse files
committed
different way to install pyenv
1 parent 848d653 commit 0e53cd2

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Dockerfile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
# batteries included (virtuoso for run on cluster with local db)
22
FROM joernhees/virtuoso:latest
33

4+
ENV HOME="/root"
5+
WORKDIR $HOME
46
ENTRYPOINT []
5-
RUN export LC_ALL=C \
6-
&& ln -s /usr/bin/isql-vt /usr/local/bin/isql
7+
RUN ln -s /usr/bin/isql-vt /usr/local/bin/isql
78
RUN apt-get update \
89
&& apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev git lzop
9-
RUN curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash \
10-
&& export PATH="/usr/local/var/pyenv/bin:$PATH" \
11-
&& export PYENV_ROOT="$HOME/.pyenv" \
12-
&& eval "$(pyenv init --path)"
10+
11+
RUN git clone --depth=1 https://github.com/pyenv/pyenv.git .pyenv
12+
ENV PYENV_ROOT="$HOME/.pyenv"
13+
ENV PATH="$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH"
14+
1315
RUN pyenv install 2.7.18 \
1416
&& pyenv global 2.7.18 \
1517
&& pip install --upgrade pip virtualenv

0 commit comments

Comments
 (0)