mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 08:51:32 +00:00
Switch hardcoded user to envvar
This commit is contained in:
parent
44317ba76a
commit
e2aa7c755c
@ -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" && \
|
||||||
|
Loading…
Reference in New Issue
Block a user