Tweak Dockerfile for better caching
This commit is contained in:
parent
e1083c83ae
commit
146a3fda76
2 changed files with 26 additions and 21 deletions
|
|
@ -1,4 +1,8 @@
|
|||
FROM node:18-alpine
|
||||
WORKDIR /app
|
||||
|
||||
COPY package*.json .
|
||||
RUN npm ci
|
||||
|
||||
COPY . .
|
||||
RUN npm install
|
||||
CMD ["node", "index.js"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue