Skip to content

Commit 9a6b858

Browse files
authored
Add /start shim for containers using old entrypoint (#3663)
1 parent cabeb9c commit 9a6b858

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ STOPSIGNAL SIGTERM
6666
ENV TYPE=VANILLA VERSION=LATEST EULA="" UID=1000 GID=1000 LC_ALL=en_US.UTF-8
6767

6868
COPY --chmod=755 scripts/start* /image/scripts/
69+
70+
# Backward compatible shim for those with legacy entrypoint
71+
RUN echo "#!/bin/sh\nexec /image/scripts/start\n" > /start && chmod +x /start
72+
6973
COPY --chmod=755 scripts/auto/* /image/scripts/auto/
7074
COPY --chmod=755 files/shims/ /usr/local/bin/
7175
COPY --chmod=755 files/* /image/

0 commit comments

Comments
 (0)