Change Dockerfile order to improve cache hits

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2023-01-14 11:48:37 +00:00
parent f3f514b80d
commit dea8221054

View File

@ -1,7 +1,7 @@
FROM node:19 FROM node:19
EXPOSE 8460
WORKDIR /usr/src/app WORKDIR /usr/src/app
COPY ./package*.json ./ COPY ./package*.json ./
RUN npm ci --only=production RUN npm ci --only=production
COPY . . COPY . .
EXPOSE 8460
CMD [ "node", "app.js" ] CMD [ "node", "app.js" ]