Added node_modules to cache in docker build
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
c2f1c51150
commit
7b571cc63a
@ -1,8 +1,10 @@
|
|||||||
FROM node:lts-alpine
|
FROM node:lts-alpine
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . .
|
COPY ./package.json ./package.json
|
||||||
|
COPY ./package-lock.json ./package-lock.json
|
||||||
RUN npm ci
|
RUN npm ci
|
||||||
|
COPY . .
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
CMD ["npm", "start"]
|
CMD ["npm", "start"]
|
||||||
Loading…
Reference in New Issue