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