diff --git a/Dockerfile b/Dockerfile index c1a021e..0387fef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM node:20-slim AS frontend-builder WORKDIR /build/frontend COPY frontend/package*.json ./ -RUN npm ci +RUN npm install COPY frontend/ ./ RUN npm run build @@ -17,7 +17,7 @@ RUN apt-get update && apt-get install -y \ WORKDIR /build/backend COPY backend/package*.json backend/tsconfig.json ./ -RUN npm ci +RUN npm install COPY backend/src ./src RUN npm run build && npm prune --production