diff --git a/Dockerfile b/Dockerfile index 4583e34..8c07c59 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ WORKDIR /app # Install dependencies first for better Docker layer caching COPY package*.json ./ -RUN npm ci +RUN npm install # Copy source code and build the production bundle COPY . . @@ -21,7 +21,7 @@ ENV PORT=3000 # Install production dependencies only COPY package*.json ./ -RUN npm ci --only=production +RUN npm install --omit=dev # Copy built dist files and default cms data from builder COPY --from=builder /app/dist ./dist