Move COPY statement after install to make code changes easier
This commit is contained in:
parent
eea288b28d
commit
05e7be2635
|
@ -2,8 +2,9 @@ FROM node:lts-alpine
|
||||||
|
|
||||||
WORKDIR /code
|
WORKDIR /code
|
||||||
|
|
||||||
COPY ./dist /code/dist
|
|
||||||
COPY ./package*.json /code/
|
COPY ./package*.json /code/
|
||||||
RUN npm install --only-production
|
RUN npm install --only-production
|
||||||
|
|
||||||
|
COPY ./dist /code/dist
|
||||||
|
|
||||||
CMD ["npm", "run", "start"]
|
CMD ["npm", "run", "start"]
|
Loading…
Reference in New Issue