Dockerfile: make this work for clean builds also.

This commit is contained in:
2025-02-15 14:57:31 -08:00
parent 29d5fe3b70
commit d0386ee8ac

View File

@@ -8,8 +8,8 @@ COPY package*.json ./
COPY frontend/package*.json ./frontend/ COPY frontend/package*.json ./frontend/
# Install dependencies # Install dependencies
RUN npm ci RUN npm i
RUN cd frontend && npm ci RUN cd frontend && npm i
# Copy source files # Copy source files
COPY . . COPY . .
@@ -26,7 +26,7 @@ WORKDIR /app
# Install only production dependencies # Install only production dependencies
COPY package*.json ./ COPY package*.json ./
RUN npm ci --production RUN npm i --production
# Copy built files # Copy built files
COPY --from=builder /app/build ./build COPY --from=builder /app/build ./build