I was able to build a successful image out of the Dockerfile below but I failed to run the image and I get the error below even though I have copied the entrypoint.sh to the right location. Any pointers to fix this would be great.
Error: docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "docker-entrypoint.sh": executable file not found in $PATH: unknown.
ENV NODE_VERSION 12.22.6
COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
CMD [ "node" ]
the docker-entrypoint.sh looks like below:
#!/bin/sh
set -e
if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then
set -- node "$@"
fi
exec "$@"