Merge pull request #175 from shuizhongyueming/f/RUN命令调整

Fix run cmd
pull/169/merge
Baohua Yang 2017-06-01 18:50:13 +08:00 committed by GitHub
commit aa3b036630
1 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@
```Dockerfile
FROM node:slim
RUN "mkdir /app"
RUN mkdir /app
WORKDIR /app
COPY ./package.json /app
RUN [ "npm", "install" ]
@ -26,7 +26,7 @@ CMD [ "npm", "start" ]
```Dockerfile
FROM node:slim
RUN "mkdir /app"
RUN mkdir /app
WORKDIR /app
CMD [ "npm", "start" ]
```
@ -48,7 +48,7 @@ COPY . /app/
```Dockerfile
FROM node:slim
RUN "mkdir /app"
RUN mkdir /app
WORKDIR /app
ONBUILD COPY ./package.json /app
ONBUILD RUN [ "npm", "install" ]