From aad1c946f2bc01892f36a060e31445ef20749e51 Mon Sep 17 00:00:00 2001 From: Victor Simart Date: Wed, 6 Sep 2023 17:10:05 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=8B:=20fix=20docker=20permissions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 25875cd..d6b908f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,7 +36,8 @@ RUN apk add --virtual .build-deps python3-dev libffi-dev build-base \ COPY . /opt/linkedin-matrix RUN apk add --no-cache git && pip3 install --no-cache-dir .[e2be] && apk del git \ # This doesn't make the image smaller, but it's needed so that the `version` command works properly - && cp linkedin_matrix/example-config.yaml . && rm -rf linkedin_matrix .git build + && cp linkedin_matrix/example-config.yaml . && rm -rf linkedin_matrix .git build \ + && chown -R 1337:1337 /opt/linkedin-matrix VOLUME /data ENV UID=1337 GID=1337