From 938d62425fe418a7329bbf5c569e7f6de806949f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6nig?= Date: Fri, 23 Feb 2024 21:02:24 +0000 Subject: [PATCH] Fix PATH MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian König --- .devcontainer/Dockerfile | 7 +++++-- .devcontainer/post-create.sh | 1 - 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index bbdb6e4..211cc72 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -4,5 +4,8 @@ RUN apk add --no-cache \ nano\ openssh \ py3-pip - -USER node +ENV USER node +USER $USER +# python packages (as mkdocs) are installed in the user's home directory +# but we need them to be accessible from $PATH +ENV PATH="$PATH:/home/$USER/.local/bin" diff --git a/.devcontainer/post-create.sh b/.devcontainer/post-create.sh index 97aae44..44c9b6b 100644 --- a/.devcontainer/post-create.sh +++ b/.devcontainer/post-create.sh @@ -1,4 +1,3 @@ #! /bin/sh npm install pip3 install -r requirements.txt --break-system-packages --no-warn-script-location -export PATH="$HOME/.local/bin:$PATH"