Skip to content

Commit 7e47b37

Browse files
Added an entrypoint script
Fixes #1039
1 parent b374b8c commit 7e47b37

37 files changed

+194
-0
lines changed

10/alpine/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,7 @@ RUN apk add --no-cache --virtual .build-deps-yarn curl gnupg tar \
6868
&& rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \
6969
&& apk del .build-deps-yarn
7070

71+
COPY docker-entrypoint.sh /usr/local/bin/
72+
ENTRYPOINT ["docker-entrypoint.sh"]
73+
7174
CMD [ "node" ]

10/alpine/docker-entrypoint.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
set -e
3+
4+
if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then
5+
set -- node "$@"
6+
fi
7+
8+
exec "$@"

10/jessie-slim/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,7 @@ RUN set -ex \
6464
&& ln -s /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg \
6565
&& rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz
6666

67+
COPY docker-entrypoint.sh /usr/local/bin/
68+
ENTRYPOINT ["docker-entrypoint.sh"]
69+
6770
CMD [ "node" ]
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
set -e
3+
4+
if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then
5+
set -- node "$@"
6+
fi
7+
8+
exec "$@"

10/jessie/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,7 @@ RUN set -ex \
6161
&& ln -s /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg \
6262
&& rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz
6363

64+
COPY docker-entrypoint.sh /usr/local/bin/
65+
ENTRYPOINT ["docker-entrypoint.sh"]
66+
6467
CMD [ "node" ]

10/jessie/docker-entrypoint.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
set -e
3+
4+
if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then
5+
set -- node "$@"
6+
fi
7+
8+
exec "$@"

10/stretch-slim/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,7 @@ RUN set -ex \
6464
&& ln -s /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg \
6565
&& rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz
6666

67+
COPY docker-entrypoint.sh /usr/local/bin/
68+
ENTRYPOINT ["docker-entrypoint.sh"]
69+
6770
CMD [ "node" ]
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
set -e
3+
4+
if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then
5+
set -- node "$@"
6+
fi
7+
8+
exec "$@"

10/stretch/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,7 @@ RUN set -ex \
6161
&& ln -s /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg \
6262
&& rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz
6363

64+
COPY docker-entrypoint.sh /usr/local/bin/
65+
ENTRYPOINT ["docker-entrypoint.sh"]
66+
6467
CMD [ "node" ]

10/stretch/docker-entrypoint.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
set -e
3+
4+
if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then
5+
set -- node "$@"
6+
fi
7+
8+
exec "$@"

0 commit comments

Comments
 (0)