mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-09-01 03:37:18 +00:00
Correct formatting of /start shim for alpine variants (#3690)
This commit is contained in:
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
# Auto detect text files and perform LF normalization
|
# Auto detect text files and perform LF normalization
|
||||||
* text=lf
|
* text eol=lf
|
||||||
+4
-1
@@ -68,7 +68,10 @@ 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
|
# Backward compatible shim for those with legacy entrypoint
|
||||||
RUN echo "#!/bin/sh\nexec /image/scripts/start\n" > /start && chmod +x /start
|
COPY --chmod=755 <<EOF /start
|
||||||
|
#!/bin/bash
|
||||||
|
exec /image/scripts/start
|
||||||
|
EOF
|
||||||
|
|
||||||
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/
|
||||||
|
|||||||
Reference in New Issue
Block a user