📜  节点模块没有在 docker 上的卷上安装 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:17.245000             🧑  作者: Mango

代码示例1
redis:
    image: redis
worker:
    build: ./worker
    command: npm start
    ports:
        - "9730:9730"
    volumes:
        - ./worker/:/worker/
        - /worker/node_modules
    links:
        - redis