我有我的构建文件泊坞窗天青的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
错误的原因是什么?
不要使用sudo。刚落,从该命令。这种形象在默认情况下已经以root身份运行 - 没有理由。
TJs-MacBook-Pro:~ tj$ docker run node:10-alpine whoami
root