我正在为一个nextjs应用程序与alpine node合作。我正在试着安装纱线。我的控制台返回我:
stat/bin/sh:没有这样的文件或目录:未知
这里是我的文件:
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:latest)