mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-07-14 20:44:54 +00:00
Add /start shim for containers using old entrypoint (#3663)
This commit is contained in:
@@ -66,6 +66,10 @@ STOPSIGNAL SIGTERM
|
|||||||
ENV TYPE=VANILLA VERSION=LATEST EULA="" UID=1000 GID=1000 LC_ALL=en_US.UTF-8
|
ENV TYPE=VANILLA VERSION=LATEST EULA="" UID=1000 GID=1000 LC_ALL=en_US.UTF-8
|
||||||
|
|
||||||
COPY --chmod=755 scripts/start* /image/scripts/
|
COPY --chmod=755 scripts/start* /image/scripts/
|
||||||
|
|
||||||
|
# Backward compatible shim for those with legacy entrypoint
|
||||||
|
RUN echo "#!/bin/sh\nexec /image/scripts/start\n" > /start && chmod +x /start
|
||||||
|
|
||||||
COPY --chmod=755 scripts/auto/* /image/scripts/auto/
|
COPY --chmod=755 scripts/auto/* /image/scripts/auto/
|
||||||
COPY --chmod=755 files/shims/ /usr/local/bin/
|
COPY --chmod=755 files/shims/ /usr/local/bin/
|
||||||
COPY --chmod=755 files/* /image/
|
COPY --chmod=755 files/* /image/
|
||||||
|
|||||||
Reference in New Issue
Block a user