aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
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"]