diff --git a/Dockerfile b/Dockerfile index d54dc9f..3f80ada 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,12 @@ FROM node:lts AS build WORKDIR /app + +# Copy package files first to leverage cache +COPY package*.json ./ +RUN npm ci + +# Copy remaining files COPY . . -RUN npm i RUN npm run build FROM httpd:2.4 AS runtime