Correct formatting of /start shim for alpine variants (#3690)

This commit is contained in:
Geoff Bourne
2025-10-04 12:38:42 -05:00
committed by GitHub
parent b7859d7496
commit a19eadec80
2 changed files with 92 additions and 89 deletions
+1 -1
View File
@@ -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
View File
@@ -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/