#################################################3
COPY ./docker-entrypoint.sh /
RUN chmod +x /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]
#
#!/bin/sh
echo 'Hello World!'
#################################
## good
Override ENTRYPOINT with docker run
https://phoenixnap.com/kb/docker-run-override-entrypoint
# good 2
https://ithelp.ithome.com.tw/articles/10250988
# ref
https://stackoverflow.com/questions/38905135/why-wont-my-docker-entrypoint-sh-execute
#
https://mileschou.github.io/blog/why-the-entrypoint-not-start-in-docker/
https://stackoverflow.com/questions/42494853/standard-init-linux-go178-exec-user-process-caused-exec-format-error
https://blog.tiger-workshop.com/docker-difference-between-entrypoint-and-cmd/
沒有留言:
張貼留言