Node.js docker compose don';找不到我的文件(或开始!)

Node.js docker compose don';找不到我的文件(或开始!),node.js,docker-compose,Node.js,Docker Compose,我的前提是我和docker没有关系。 我必须开始一个项目与3个容器,前两个没有问题,即与节点和sh文件是 这是我的docker compose.yml version: '3' services: php: image: php:7.0-apache ports: - "80:80" volumes: - ./libs:/var/www/html oracle: image: bobcasual/sql-databa

我的前提是我和docker没有关系。 我必须开始一个项目与3个容器,前两个没有问题,即与节点和sh文件是

这是我的docker compose.yml

version: '3'
services:
  php:
    image: php:7.0-apache
    ports:
     - "80:80"
    volumes:
     - ./libs:/var/www/html
  oracle:
    image: bobcasual/sql-database-xe-11
    ports:
     - "1521:1521"
    volumes:
     - ./bin/oradata:/u01/app/oracle
  node:
    image: collinestes/docker-node-oracle:10-stretch
    ports:
     - "3003:3003"
     - "9229:9229" # node debug port
    volumes:
      - ./:/data
    links:
      - php
      - oracle
    working_dir: "/data"
    command: npm run start
当我运行我的“docker compose up”时

我的第一个测试是多次在“scripts”文件夹中创建一个只包含内部console.log(“AAAAA”)的文件,并且我在yml文件中将“npm run start”中的命令与“npm tun test”重新关联,所有操作都正常

package.json中的脚本

  "scripts": {
    "test": "node scripts/test.js",
    "prestart": "npm install",
    "start": "scripts/server.run development",
    "start-prod": "scripts/server.run production"
  },

i have understood that data is mounted, the folder scripts it is present and inside exist the fil server.run and test.js, but why the docker-compose tell me always "sh: 1: scripts/server.run: not found" ?

i have a window 10 and i have the same problem if i use a WLM with ubuntu or use window command shell to start the docker-compose
  "scripts": {
    "test": "node scripts/test.js",
    "prestart": "npm install",
    "start": "scripts/server.run development",
    "start-prod": "scripts/server.run production"
  },

i have understood that data is mounted, the folder scripts it is present and inside exist the fil server.run and test.js, but why the docker-compose tell me always "sh: 1: scripts/server.run: not found" ?

i have a window 10 and i have the same problem if i use a WLM with ubuntu or use window command shell to start the docker-compose