我在使用Azure DevOps构建我的坞文件时遇到了问题。
这是我的停靠文件的副本:
FROM node:10-alpine
# Create app directory
WORKDIR /usr/src/app
# Copy app
COPY . .
# install packages
RUN apk --no-cache --virtual build-dependencies add \
git \
python \
make \
g++ \
&& sudo npm@latest -g wait-on concurrently truffle \
&& npm install \
&& apk del build-dependencies \
&& truffle compile --all
# Expose the right ports, the commands below are irrelevant when using a docker-compose file.
EXPOSE 3000
CMD ["npm", "run", "server”]它最近起作用了,现在我收到了以下错误消息:
数独没有找到。
造成这个sudo not found错误的原因是什么?
发布于 2019-02-05 22:13:31
别用苏藤。把它从命令中删除。默认情况下,该映像已经作为root运行--没有理由这样做。
TJs-MacBook-Pro:~ tj$ docker run node:10-alpine whoami
roothttps://stackoverflow.com/questions/54543637
复制相似问题