Skip to content

Commit b2512eb

Browse files
Fix pyenv installation for devcontainer (#936)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 parent 2191684 commit b2512eb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.devcontainer/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,12 @@ RUN mkdir -p ${HOME} && \
1111
groupadd --gid ${GID} vscode && \
1212
useradd --uid ${UID} --gid ${GID} --home ${HOME} vscode && \
1313
chown -R ${UID}:${GID} /home/vscode
14+
15+
# Move pyenv installation
16+
ENV PYENV_ROOT="${HOME}/.pyenv"
17+
ENV PATH="$PYENV_ROOT/bin:$PYENV_ROOT/shims:${PATH}"
18+
RUN mv /root/.pyenv /home/vscode/.pyenv && \
19+
chown -R vscode:vscode /home/vscode/.pyenv
20+
21+
# Set user
1422
USER ${UID}:${GID}

0 commit comments

Comments
 (0)