From dd6f99ea6070c02eaed8a9d26991652002a72fe2 Mon Sep 17 00:00:00 2001 From: Audrius Butkevicius Date: Wed, 17 Jan 2024 10:30:25 +0200 Subject: [PATCH] Allow running image as non-root user (#3019) Currently /tmp/monaco ends up only writable by root, and readable by other users. Running the image with a non-root uid fails, as launcher fails to write out go.mod to the root owned directory. --- lsp/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lsp/Dockerfile b/lsp/Dockerfile index 1b1e4f4e1f..003918d285 100644 --- a/lsp/Dockerfile +++ b/lsp/Dockerfile @@ -54,7 +54,7 @@ RUN pipenv install COPY pyls_launcher.py . -RUN mkdir -p /tmp/monaco +RUN mkdir -p /tmp/monaco && chmod -R 777 /tmp/monaco RUN cd /tmp/monaco && yarn add -D windmill-client