1
0
mirror of https://github.com/lucko/LuckPerms.git synced 2025-08-17 20:01:19 +02:00

Use unix domain socket for Docker commands

This commit is contained in:
Luck
2022-12-10 23:41:33 +00:00
parent 5555cdac89
commit 8e1553c0ed
7 changed files with 48 additions and 25 deletions

View File

@@ -4,7 +4,7 @@ RUN apk add --no-cache openjdk17 netcat-openbsd
# create a simple 'send' command that will allow users
# to run, for example: docker exec <container> send lp info
RUN printf '#!/bin/sh\n\
echo "$@" | nc -N localhost 3000\n' >> /usr/bin/send && chmod 777 /usr/bin/send
echo "$@" | nc -NU /opt/luckperms/luckperms.sock\n' >> /usr/bin/send && chmod 777 /usr/bin/send
# setup user
RUN addgroup -S app && adduser -S -G app app