Fix security vulnerabilities and add early dependency scanning
Some checks failed
CI/CD Pipeline - Apartment Dashboard / Scan Dependencies (push) Successful in 44s
CI/CD Pipeline - Apartment Dashboard / Run Linter (push) Successful in 10m6s
CI/CD Pipeline - Apartment Dashboard / Build & Push Image (push) Failing after 2m36s
CI/CD Pipeline - Apartment Dashboard / Deploy to Production (push) Has been skipped

- Add apk upgrade to nginx:alpine to fix libpng vulnerabilities
- Add scan-deps job that runs in parallel with lint
This commit is contained in:
2026-01-23 16:10:52 -07:00
parent d74cd7f20e
commit c5c2c0e81c
2 changed files with 28 additions and 1 deletions

View File

@ -18,6 +18,9 @@ RUN npm run build
# Production stage
FROM nginx:alpine
# Update Alpine packages to fix security vulnerabilities
RUN apk upgrade --no-cache
# Copy built app to nginx
COPY --from=build /app/dist /usr/share/nginx/html