mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-09-21 14:41:58 +00:00
parent
98cec98dd9
commit
da1a3a47cd
1 changed files with 11 additions and 7 deletions
|
@ -52,14 +52,18 @@ RUN tar -x -C /usr/local/bin -f /tmp/mc-server-runner.tgz mc-server-runner && \
|
||||||
ADD https://git.faldoria.de/tof/server/build-tools/-/jobs/artifacts/buildtools-${TOF_BUILDTOOLS_VER}/raw/target/ToF-BuildTools.jar?job=release-artifact /tmp/tof-buildtools/BuildTools.jar
|
ADD https://git.faldoria.de/tof/server/build-tools/-/jobs/artifacts/buildtools-${TOF_BUILDTOOLS_VER}/raw/target/ToF-BuildTools.jar?job=release-artifact /tmp/tof-buildtools/BuildTools.jar
|
||||||
|
|
||||||
ONBUILD ARG BUILDTOOLS_OUTPUT=/plugins
|
ONBUILD ARG BUILDTOOLS_OUTPUT=/plugins
|
||||||
ONBUILD COPY Dockerfile *plugins.yml /tmp/tof-buildtools/
|
ONBUILD COPY *Dockerfile* *plugins.yml /tmp/tof-buildtools/
|
||||||
ONBUILD RUN java -jar /tmp/tof-buildtools/BuildTools.jar \
|
ONBUILD RUN \
|
||||||
--config "/tmp/tof-buildtools/plugins.yml" \
|
[ -d /tmp/tof-buildtools ] && \
|
||||||
--configs "plugins.yml" \
|
[ $(find /tmp/tof-buildtools -type f -name plugins.yml | wc -l) -gt 0 ] && \
|
||||||
--dir "/tmp/tof-buildtools/" \
|
java -jar /tmp/tof-buildtools/BuildTools.jar \
|
||||||
--output ${BUILDTOOLS_OUTPUT} && \
|
--config "/tmp/tof-buildtools/plugins.yml" \
|
||||||
|
--configs "plugins.yml" \
|
||||||
|
--dir "/tmp/tof-buildtools/" \
|
||||||
|
--output ${BUILDTOOLS_OUTPUT} && \
|
||||||
chown -R minecraft:minecraft ${BUILDTOOLS_OUTPUT} && \
|
chown -R minecraft:minecraft ${BUILDTOOLS_OUTPUT} && \
|
||||||
rm -fR /tmp/tof-buildtools/
|
rm -fR /tmp/tof-buildtools/ || \
|
||||||
|
true
|
||||||
|
|
||||||
COPY mcadmin.jq /usr/share
|
COPY mcadmin.jq /usr/share
|
||||||
RUN chmod +x /usr/local/bin/*
|
RUN chmod +x /usr/local/bin/*
|
||||||
|
|
Loading…
Reference in a new issue