Dockerfile - stat /bin/sh: 没有这样的文件或目录": 未知



我正在使用 alpine-node 来开发 NextJS 应用程序。我正在尝试运行纱线安装。我的控制台返回我:

stat/bin/sh:没有这样的文件或目录":未知

这是我的 Dockerfile:

FROM mhart/alpine-node:latest
WORKDIR /app
COPY package.json /app
ENTRYPOINT ["/bin/sh"] // I have tried to modify the entrypoin in order to cure the problem
RUN yarn install
COPY . /app  
RUN yarn build
CMD yarn start 

出了什么问题?我想不通。

任何提示都会很棒,

谢谢。

先试试这个 -

$>docker run -it --rm node_alpine:latest
/ # hostname
75b6ddda492f

如果你把外壳放在容器里,那么你的图像也应该可以正常工作。 否则问题与基本映像(node_alpine:最新(

最新更新