Multiple commands on docker ENTRYPOINT

后端 未结 2 1518
说谎
说谎 2020-12-06 09:35

I\'m trying to build a custom tcserver docker image. But I\'m having some problems starting the webserver and the tomcat.
As far as I understand I should use ENTRYPOINT

2条回答
  •  不思量自难忘°
    2020-12-06 10:27

    You can use npm concurrently package.

    For e.g.

    ENTRYPOINT ["npx","concurrently","command1","command2"]
    

    It will run them in parallel.

提交回复
热议问题