Showing
2 changed files
with
5 additions
and
8 deletions
1 | FROM node:12.16.2 | 1 | FROM node:12.16.2 |
2 | 2 | ||
3 | -RUN mkdir /app | 3 | +WORKDIR /usr/src/app |
4 | -WORKDIR /app | ||
5 | 4 | ||
6 | -ENV PATH /app/node_modules/.bin:$PATH | 5 | +COPY package*.json ./ |
7 | 6 | ||
8 | -COPY package*.json /app/ | 7 | +RUN npm install |
9 | -RUN npm install --silent | ||
10 | -RUN npm install react-scripts@3.0.1 -g --silent | ||
11 | 8 | ||
12 | -CMD ["npm", "start"] | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
9 | +COPY . . | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or login to post a comment