From 98b9ba8333c43b4265a9cdf43595fd70ae85f9d3 Mon Sep 17 00:00:00 2001 From: Alexander Petric Date: Tue, 24 Dec 2024 15:46:51 +0100 Subject: [PATCH] Dockerfile --- lsp/Dockerfile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lsp/Dockerfile b/lsp/Dockerfile index e805d48ec7028..5049bc51bc4d9 100644 --- a/lsp/Dockerfile +++ b/lsp/Dockerfile @@ -28,6 +28,12 @@ RUN pip3 install tornado python-lsp-jsonrpc ruff-lsp COPY --from=denoland/deno:2.1.2 --chmod=755 /usr/bin/deno /usr/bin/deno +ENV PIPENV_VENV_IN_PROJECT=1 + +RUN mkdir -p /pyls + +WORKDIR /pyls + COPY Pipfile . RUN cat Pipfile @@ -42,7 +48,12 @@ RUN mkdir -p /tmp/monaco && chmod -R 777 /tmp/monaco RUN cd /tmp/monaco && yarn add -D windmill-client +# Ensure all users have access to the installed packages and configurations +RUN chmod -R a+rX /usr/local && \ + chmod -R a+rX /pyls && \ + chown -R pn:pn /pyls + EXPOSE 3001 -CMD ["python3" ,"pyls_launcher.py"] +CMD ["python3", "pyls_launcher.py"]