diff --git a/Dockerfile b/Dockerfile index 3c14e87..0ea94f8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,8 @@ FROM node:22-alpine AS builder WORKDIR /app COPY package.json package-lock.json* ./ -RUN --mount=type=cache,target=/root/.npm npm ci +RUN --mount=type=cache,target=/root/.npm \ + if [ -f package-lock.json ]; then npm ci; else npm install --no-audit --no-fund; fi COPY . . RUN npm run build