From 35cba7f648b269f9ea044552e8bbb9cedf29c30f Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Sat, 21 Sep 2024 09:39:16 -0400 Subject: wip, adding ollama as an alternative to detect-secrets --- Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 3eabd76..6b95898 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,11 @@ RUN apk update && \ lua5.3-cqueues \ pipx && \ pipx install detect-secrets -WORKDIR /lclipd -COPY ./*.lua /lclipd/ +ENV HOME=/home/user +RUN set -eux; \ + adduser -u 1001 -D -h "$HOME" user; \ + chown -R user:user "$HOME" +WORKDIR /home/user/lclipd +COPY ./*.lua ./ +RUN chown -R user:user /home/user/lclipd ENTRYPOINT ["/lclipd/lclipd.lua"] -- cgit v1.2.3