add docker_entrypoint as official

Signed-off-by: Liu, Jianjun <jianjun.liu@intel.com>
This commit is contained in:
Liu, Jianjun
2019-09-10 10:42:30 +08:00
committed by qzheng527
parent 0ac12e4326
commit 08f2098d00
2 changed files with 13 additions and 0 deletions
+5
View File
@@ -33,4 +33,9 @@ FROM clearlinux/os-core:latest
COPY --from=builder /install_root /
COPY docker-entrypoint.sh /usr/bin/
RUN chmod +x /usr/bin/docker-entrypoint.sh
ENTRYPOINT ["/usr/bin/docker-entrypoint.sh"]
CMD ["node"]
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
set -e
if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then
set -- node "$@"
fi
exec "$@"