Omit dev
All checks were successful
Build and Publish Docker Image / build_and_push (push) Successful in 31s

This commit is contained in:
2024-09-25 15:14:56 +00:00
parent b3c050ed9e
commit d032c01ecd

View File

@@ -29,7 +29,7 @@ FROM node:lts-alpine
# Install dependencies but skip dev dependencies # Install dependencies but skip dev dependencies
COPY --from=build /app/package*.json /app/.npmrc ./ COPY --from=build /app/package*.json /app/.npmrc ./
RUN npm install --only=production RUN npm install --only=production --omit=dev
# Copy the app # Copy the app
COPY --from=build /app/dist ./dist COPY --from=build /app/dist ./dist