mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
parent
8956d43c47
commit
d14d666e24
@ -14,7 +14,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
||||
jq \
|
||||
&& apt-get clean
|
||||
|
||||
RUN useradd -M -s /bin/false --uid 1000 minecraft \
|
||||
RUN useradd -s /bin/false --uid 1000 minecraft \
|
||||
&& mkdir /data \
|
||||
&& mkdir /config \
|
||||
&& mkdir /mods \
|
||||
@ -29,7 +29,7 @@ COPY start-minecraft.sh /start-minecraft
|
||||
COPY mcadmin.jq /usr/share
|
||||
RUN chmod +x /usr/local/bin/*
|
||||
|
||||
VOLUME ["/data","/mods","/config","/plugins"]
|
||||
VOLUME ["/data","/mods","/config","/plugins","/home/minecraft"]
|
||||
COPY server.properties /tmp/server.properties
|
||||
WORKDIR /data
|
||||
|
||||
|
@ -4,7 +4,7 @@ set -e
|
||||
usermod --uid $UID minecraft
|
||||
groupmod --gid $GID minecraft
|
||||
|
||||
chown -R minecraft:minecraft /data /start-minecraft
|
||||
chown -R minecraft:minecraft /data /start-minecraft /home/minecraft
|
||||
chmod -R g+wX /data /start-minecraft
|
||||
|
||||
while lsof -- /start-minecraft; do
|
||||
|
Loading…
Reference in New Issue
Block a user