Tweak Dockerfile for better caching

This commit is contained in:
Mitchell Scott
2023-04-13 15:38:30 -06:00
parent e1083c83ae
commit 146a3fda76
2 changed files with 26 additions and 21 deletions

View File

@@ -1,4 +1,8 @@
FROM node:18-alpine
WORKDIR /app
COPY package*.json .
RUN npm ci
COPY . .
RUN npm install
CMD ["node", "index.js"]