Move COPY statement after install to make code changes easier

This commit is contained in:
Matt McWilliams 2023-06-23 19:01:04 -04:00
parent eea288b28d
commit 05e7be2635
1 changed files with 2 additions and 1 deletions

View File

@ -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"]