diff options
author | terminaldweller <devi@terminaldweller.com> | 2024-09-21 13:39:16 +0000 |
---|---|---|
committer | terminaldweller <devi@terminaldweller.com> | 2024-09-21 13:39:16 +0000 |
commit | 35cba7f648b269f9ea044552e8bbb9cedf29c30f (patch) | |
tree | 79867234470a1c5b329d07e99ab4400b68071f1b /Dockerfile | |
parent | wip, adding ollama as an alternative to detect-secrets (diff) | |
download | lclip-35cba7f648b269f9ea044552e8bbb9cedf29c30f.tar.gz lclip-35cba7f648b269f9ea044552e8bbb9cedf29c30f.zip |
wip, adding ollama as an alternative to detect-secrets
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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"] |