Dockerfile CMD `command not found`

前端 未结 1 1862
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-18 06:04

I have the following Dockerfile:

FROM nodesource/node:jessie

ADD ./ /SOMEPATH

RUN cd /SOMEPATH && npm install

WORKDIR /SOMEPATH

CMD          


        
相关标签:
1条回答
  • 2021-01-18 06:38

    You are using wrong quotes. It should be:

    CMD ["bash", "npm run lint"]
    
    0 讨论(0)
提交回复
热议问题