diff options
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"] |