aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorterminaldweller <devi@terminaldweller.com>2024-09-21 13:39:16 +0000
committerterminaldweller <devi@terminaldweller.com>2024-09-21 13:39:16 +0000
commit35cba7f648b269f9ea044552e8bbb9cedf29c30f (patch)
tree79867234470a1c5b329d07e99ab4400b68071f1b /Dockerfile
parentwip, adding ollama as an alternative to detect-secrets (diff)
downloadlclip-35cba7f648b269f9ea044552e8bbb9cedf29c30f.tar.gz
lclip-35cba7f648b269f9ea044552e8bbb9cedf29c30f.zip
wip, adding ollama as an alternative to detect-secrets
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile9
1 files changed, 7 insertions, 2 deletions
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"]