Switch hardcoded user to envvar

This commit is contained in:
Bálint Bokros 2017-12-04 17:01:12 +01:00
parent 44317ba76a
commit e2aa7c755c

View File

@ -11,9 +11,9 @@ RUN apt-get update && \
libreadline-dev \ libreadline-dev \
libsqlite3-dev libsqlite3-dev
USER user USER ${AVATAO_USER}
COPY .pyenvrc /home/user/.pyenvrc COPY .pyenvrc /home/${AVATAO_USER}/.pyenvrc
ENV PYTHON_VERSION="3.6.3" ENV PYTHON_VERSION="3.6.3"
RUN curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash && \ RUN curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash && \
echo "source $HOME/.pyenvrc" >> "$HOME/.bashrc" && \ echo "source $HOME/.pyenvrc" >> "$HOME/.bashrc" && \