How to run multiple Python scripts and an executable files using Docker?

后端 未结 3 1522
清歌不尽
清歌不尽 2021-01-06 02:19

I want to create a container that is contained with two Python packages as well as a package consist of an executable file.


Here\'s my main package (dockerize

3条回答
  •  佛祖请我去吃肉
    2021-01-06 02:38

    try it via entrypoint.sh

    ENTRYPOINT ["/docker_entrypoint.sh"]
    

    docker_entrypoint.sh

    #!/bin/bash
    
    set -e
    
    exec python3 not__main__.py &
    exec python3 __main__.py 
    

    symbol & says that you run service as daemon in background

提交回复
热议问题