mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
Merge remote-tracking branch 'refs/remotes/origin/mc-issue-47'
This commit is contained in:
commit
0acedd04b9
@ -5,7 +5,7 @@ MAINTAINER itzg
|
|||||||
ENV APT_GET_UPDATE 2015-10-03
|
ENV APT_GET_UPDATE 2015-10-03
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
|
|
||||||
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y libmozjs-24-bin imagemagick && apt-get clean
|
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y libmozjs-24-bin imagemagick lsof && apt-get clean
|
||||||
RUN update-alternatives --install /usr/bin/js js /usr/bin/js24 100
|
RUN update-alternatives --install /usr/bin/js js /usr/bin/js24 100
|
||||||
|
|
||||||
RUN wget -O /usr/bin/jsawk https://github.com/micha/jsawk/raw/master/jsawk
|
RUN wget -O /usr/bin/jsawk https://github.com/micha/jsawk/raw/master/jsawk
|
||||||
|
@ -4,5 +4,9 @@ set -e
|
|||||||
usermod --uid $UID minecraft
|
usermod --uid $UID minecraft
|
||||||
chown -R minecraft /data /start-minecraft
|
chown -R minecraft /data /start-minecraft
|
||||||
|
|
||||||
|
while lsof -- /start-minecraft; do
|
||||||
|
echo -n "."
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
echo "...switching to user 'minecraft'"
|
||||||
exec sudo -E -u minecraft /start-minecraft
|
exec sudo -E -u minecraft /start-minecraft
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user