Node.js 如何在Windows容器上dockerize React应用程序

Node.js 如何在Windows容器上dockerize React应用程序,node.js,reactjs,docker,docker-for-windows,windows-container,Node.js,Reactjs,Docker,Docker For Windows,Windows Container,我有一个React应用程序,我想为Windows容器进行Dockerize。这是我的Dockerfile: FROM stefanscherer/node-windows # Override the base log level (info). ENV NPM_CONFIG_LOGLEVEL warn # Expose port for service EXPOSE 80 # Install and configure `serve`. RUN npm install -g serve

我有一个React应用程序,我想为Windows容器进行Dockerize。这是我的Dockerfile:

FROM stefanscherer/node-windows

# Override the base log level (info).
ENV NPM_CONFIG_LOGLEVEL warn

# Expose port for service
EXPOSE 80

# Install and configure `serve`.
RUN npm install -g serve

# Copy source code to image
COPY . .

# Install dependencies
RUN npm install

# Build app and start server from script
CMD [ "npm", "start" ]
映像已成功构建,但当我尝试运行它时,出现以下错误:

Error response from daemon: container 3b4b9e2bab346bbd95b9dc144429026c1abbe7f4d088f1f10d4c959364f50e9e encountered an error during CreateProcess: failure in a Windows system call: The system cannot find the file specified. (0x2) extra info: {"CommandLine":"npm start","WorkingDirectory":"C:\\","Environment":{"NPM_CONFIG_LOGLEVEL":"warn"},"CreateStdInPipe":true,"CreateStdOutPipe":true,"CreateStdErrPipe":true,"ConsoleSize":[0,0]}.

我是Docker的新手,所以我不确定我是否遗漏了什么。有什么想法吗?

index.js
文件不能复制到容器中