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:
@@ -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
|
||||
|
Reference in New Issue
Block a user