Skip to content
Snippets Groups Projects
Commit b9f963b7 authored by inso's avatar inso
Browse files

Run pyenv without .profile

parent e87271e3
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -30,16 +30,12 @@ WORKDIR /builder ...@@ -30,16 +30,12 @@ WORKDIR /builder
ENV PYENV_ROOT "/builder/.pyenv" ENV PYENV_ROOT "/builder/.pyenv"
USER builder USER builder
RUN git clone https://github.com/pyenv/pyenv.git /builder/.pyenv && \ RUN git clone https://github.com/pyenv/pyenv.git /builder/.pyenv && \
echo "export PYENV_ROOT=$PYENV_ROOT" >> /builder/.bashrc && \ export PATH=$PYENV_ROOT/bin:$PATH
echo "export PATH=$PYENV_ROOT/bin:$PATH" >> /builder/.bashrc PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install --force 3.5.5 && \
USER builder
RUN PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install --force 3.5.5 && \
PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install --force 3.6.4 PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install --force 3.6.4
USER root USER root
# Entry point # Entry point
COPY bootstrap.sh /root/bootstrap.sh COPY bootstrap.sh /root/bootstrap.sh
RUN chmod u+x /root/bootstrap.sh RUN chmod u+x /root/bootstrap.sh
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment