mirror of
https://github.com/yeasy/docker_practice.git
synced 2024-11-28 09:18:54 +00:00
commit
aa3b036630
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
```Dockerfile
|
```Dockerfile
|
||||||
FROM node:slim
|
FROM node:slim
|
||||||
RUN "mkdir /app"
|
RUN mkdir /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY ./package.json /app
|
COPY ./package.json /app
|
||||||
RUN [ "npm", "install" ]
|
RUN [ "npm", "install" ]
|
||||||
@ -26,7 +26,7 @@ CMD [ "npm", "start" ]
|
|||||||
|
|
||||||
```Dockerfile
|
```Dockerfile
|
||||||
FROM node:slim
|
FROM node:slim
|
||||||
RUN "mkdir /app"
|
RUN mkdir /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
CMD [ "npm", "start" ]
|
CMD [ "npm", "start" ]
|
||||||
```
|
```
|
||||||
@ -48,7 +48,7 @@ COPY . /app/
|
|||||||
|
|
||||||
```Dockerfile
|
```Dockerfile
|
||||||
FROM node:slim
|
FROM node:slim
|
||||||
RUN "mkdir /app"
|
RUN mkdir /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ONBUILD COPY ./package.json /app
|
ONBUILD COPY ./package.json /app
|
||||||
ONBUILD RUN [ "npm", "install" ]
|
ONBUILD RUN [ "npm", "install" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user