version: "3.8" services: ubuntu: image: ubuntu:16.04 working_dir: /root # command: bash -c "tail -f /dev/null" command: bash -c " apt-get update &&apt-get install -y sudo &&apt-get install -y python &&apt-get upgrade -y &&apt-get install -y git &&rm -rf /root/srs/ &&git clone https://gitee.com/winlinvip/srs.oschina.git srs &&cd srs/trunk && git remote set-url origin https://gitee.com/winlinvip/srs.oschina.git && git pull &&./configure && make" volumes: - ./sources.list:/etc/apt/sources.list - ./srs:/root