File tree 3 files changed +12
-9
lines changed
3 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,9 @@ RUN apk add --no-cache \
22
22
&& mkdir -p -m 0700 ~/.ssh && ssh-keyscan gitlab.com github.com | sort > ~/.ssh/known_hosts \
23
23
# install pyenv
24
24
&& curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash \
25
- && echo 'export PATH="/root/.pyenv/bin:/root/.cargo/bin:$PATH"' >> /root/.profile \
26
- && echo 'eval "$(pyenv init --path)"' >> /root/.profile \
25
+ && echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.profile \
26
+ && echo 'export PATH="$PYENV_ROOT/bin:$HOME/.cargo/bin:$PATH"' >> ~/.profile \
27
+ && echo 'eval "$(pyenv init --path)"' >> ~/.profile \
27
28
&& true
28
29
29
30
SHELL ["/bin/bash", "-lc"]
@@ -63,7 +64,7 @@ FROM pyenv as tox-base
63
64
COPY docker-entrypoint-tox.sh /
64
65
RUN python -m pip install -U tox \
65
66
&& curl -sSL https://install.python-poetry.org | python3 - \
66
- && echo 'export PATH="/root/ .local/bin:$PATH"' >> /root /.profile \
67
+ && echo 'export PATH="$HOME/ .local/bin:$PATH"' >> ~ /.profile \
67
68
&& true
68
69
ONBUILD COPY . /app
69
70
WORKDIR /app
Original file line number Diff line number Diff line change @@ -29,8 +29,9 @@ RUN apt-get update \
29
29
&& mkdir -p -m 0700 ~/.ssh && ssh-keyscan gitlab.com github.com | sort > ~/.ssh/known_hosts \
30
30
# install pyenv
31
31
&& curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash \
32
- && echo 'export PATH="/root/.pyenv/bin:$HOME/.cargo/bin:$PATH"' >> /root/.profile \
33
- && echo 'eval "$(pyenv init --path)"' >> /root/.profile \
32
+ && echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.profile \
33
+ && echo 'export PATH="$PYENV_ROOT/bin:$HOME/.cargo/bin:$PATH"' >> ~/.profile \
34
+ && echo 'eval "$(pyenv init --path)"' >> ~/.profile \
34
35
&& true
35
36
36
37
SHELL ["/bin/bash", "-lc"]
@@ -69,7 +70,7 @@ FROM pyenv as tox-base
69
70
COPY docker-entrypoint-tox.sh /
70
71
RUN python -m pip install -U tox \
71
72
&& curl -sSL https://install.python-poetry.org | python3 - \
72
- && echo 'export PATH="/root/ .local/bin:$PATH"' >> /root /.profile \
73
+ && echo 'export PATH="$HOME/ .local/bin:$PATH"' >> ~ /.profile \
73
74
&& true
74
75
ONBUILD COPY . /app
75
76
WORKDIR /app
Original file line number Diff line number Diff line change @@ -30,8 +30,9 @@ RUN apt-get update \
30
30
&& mkdir -p -m 0700 ~/.ssh && ssh-keyscan gitlab.com github.com | sort > ~/.ssh/known_hosts \
31
31
# install pyenv
32
32
&& curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash \
33
- && echo 'export PATH="/root/.pyenv/bin:/root/.cargo/bin:$PATH"' >> /root/.profile \
34
- && echo 'eval "$(pyenv init --path)"' >> /root/.profile \
33
+ && echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.profile \
34
+ && echo 'export PATH="$PYENV_ROOT/bin:$HOME/.cargo/bin:$PATH"' >> ~/.profile \
35
+ && echo 'eval "$(pyenv init --path)"' >> ~/.profile \
35
36
&& true
36
37
37
38
SHELL ["/bin/bash", "-lc"]
@@ -70,7 +71,7 @@ FROM pyenv as tox-base
70
71
COPY docker-entrypoint-tox.sh /
71
72
RUN python -m pip install -U tox \
72
73
&& curl -sSL https://install.python-poetry.org | python3 - \
73
- && echo 'export PATH="/root/ .local/bin:$PATH"' >> /root /.profile \
74
+ && echo 'export PATH="$HOME/ .local/bin:$PATH"' >> ~ /.profile \
74
75
&& true
75
76
ONBUILD COPY . /app
76
77
WORKDIR /app
You can’t perform that action at this time.
0 commit comments