From f47a17fd607b890159c575dae2add07251d9af9c Mon Sep 17 00:00:00 2001 From: James Magahern Date: Sat, 15 Feb 2025 14:58:34 -0800 Subject: [PATCH] Revert "Dockerfile: make this work for clean builds also." This reverts commit d0386ee8accc8657abf0287bf244a40d8ff506d5. --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9cdad17..ae07969 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,8 +8,8 @@ COPY package*.json ./ COPY frontend/package*.json ./frontend/ # Install dependencies -RUN npm i -RUN cd frontend && npm i +RUN npm ci +RUN cd frontend && npm ci # Copy source files COPY . . @@ -26,7 +26,7 @@ WORKDIR /app # Install only production dependencies COPY package*.json ./ -RUN npm i --production +RUN npm ci --production # Copy built files COPY --from=builder /app/build ./build