码头工人节点JS的问题:命令未找到

问题描述 投票:-2回答:1

我有我的构建文件泊坞窗天青的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错误的原因是什么?

docker npm azure-devops
1个回答
0
投票

不要使用sudo。刚落,从该命令。这种形象在默认情况下已经以root身份运行 - 没有理由。

TJs-MacBook-Pro:~ tj$ docker run node:10-alpine whoami
root
© www.soinside.com 2019 - 2024. All rights reserved.