Omit dev
All checks were successful
Build and Publish Docker Image / build_and_push (push) Successful in 31s
All checks were successful
Build and Publish Docker Image / build_and_push (push) Successful in 31s
This commit is contained in:
@@ -29,7 +29,7 @@ FROM node:lts-alpine
|
||||
|
||||
# Install dependencies but skip dev dependencies
|
||||
COPY --from=build /app/package*.json /app/.npmrc ./
|
||||
RUN npm install --only=production
|
||||
RUN npm install --only=production --omit=dev
|
||||
|
||||
# Copy the app
|
||||
COPY --from=build /app/dist ./dist
|
||||
|
||||
Reference in New Issue
Block a user