mirror of
https://github.com/lucko/LuckPerms.git
synced 2025-08-29 09:09:51 +02:00
Implement standalone/cli app
This commit is contained in:
22
standalone/docker/Dockerfile
Normal file
22
standalone/docker/Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
||||
FROM alpine
|
||||
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
|
||||
|
||||
# setup user
|
||||
RUN addgroup -S app && adduser -S -G app app
|
||||
USER app
|
||||
|
||||
# copy jar file into image
|
||||
WORKDIR /opt/luckperms
|
||||
COPY LuckPerms-Standalone-*.jar .
|
||||
RUN mv * luckperms-standalone.jar
|
||||
|
||||
# create volume for data directory
|
||||
RUN mkdir data
|
||||
VOLUME ["/opt/luckperms/data"]
|
||||
|
||||
CMD ["java", "-jar", "luckperms-standalone.jar", "--docker"]
|
Reference in New Issue
Block a user