From 4bd792c196f9195eab7c1cd0a4a6c877e9af388c Mon Sep 17 00:00:00 2001 From: Pascal Pfeiffer <1069138+pascal-pfeiffer@users.noreply.github.com> Date: Fri, 13 Sep 2024 17:08:50 +0200 Subject: [PATCH] move PATH in Dockerfile (#857) fixes flash_attn installation --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ff02cf1e5..49534c4e3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,9 +30,7 @@ ENV HOME=/home/llmstudio # Static application code lives in /workspace/ WORKDIR /workspace -# Add pip to the PATH ENV PATH=/home/llmstudio/.local/bin:$PATH -ENV PATH=/workspace/.venv/bin:$PATH RUN \ curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10 && \ chmod -R a+w /home/llmstudio @@ -43,6 +41,9 @@ COPY Makefile Pipfile Pipfile.lock /workspace/ ENV PIPENV_VENV_IN_PROJECT=1 RUN make setup && chmod -R 777 /workspace/.venv +# Add the venv to the PATH +ENV PATH=/workspace/.venv/bin:$PATH + # We need to create a mount point for the user to mount their volume # All persistent data lives in /home/llmstudio/mount RUN mkdir -p /home/llmstudio/mount