0
我一直在試圖建立一個碼頭工人形象:不能使用此Dockerfile建碼頭工人形象
FROM mhart/alpine-node:base-6
MAINTAINER techhadmin
COPY ./package.json src/
RUN cd src && npm install
COPY . /src
WORKDIR /src
EXPOSE 3000
CMD ["npm", "start"]
但我收到此錯誤:
/bin/sh: npm: not found
The command '/bin/sh -c cd src && npm install' returned a non-zero code: 127
任何想法如何,我可以解決這個問題?