From b9f963b7d42eabd28acad0852df44e08758d6930 Mon Sep 17 00:00:00 2001 From: inso <insomniak.fr@gmail.com> Date: Tue, 13 Feb 2018 21:12:38 +0000 Subject: [PATCH] Run pyenv without .profile --- Dockerfile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8bd7b0b..b78f88e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,16 +30,12 @@ WORKDIR /builder ENV PYENV_ROOT "/builder/.pyenv" USER builder RUN git clone https://github.com/pyenv/pyenv.git /builder/.pyenv && \ - echo "export PYENV_ROOT=$PYENV_ROOT" >> /builder/.bashrc && \ - echo "export PATH=$PYENV_ROOT/bin:$PATH" >> /builder/.bashrc - -USER builder -RUN PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install --force 3.5.5 && \ + export PATH=$PYENV_ROOT/bin:$PATH + PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install --force 3.5.5 && \ PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install --force 3.6.4 USER root - # Entry point COPY bootstrap.sh /root/bootstrap.sh RUN chmod u+x /root/bootstrap.sh -- GitLab