diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 64697c3..b003433 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -27,11 +27,13 @@ COPY . . # Build the application RUN npm run build -# Production stage -FROM nginx:alpine +# Production stage (use Alpine with patched libpng) +FROM nginx:1.27-alpine3.21 # Upgrade all packages to fix security vulnerabilities (BusyBox CVEs) RUN apk upgrade --no-cache +# Ensure libpng includes CVE fixes +RUN apk add --no-cache 'libpng>=1.6.51-r0' # Install runtime dependencies RUN apk add --no-cache curl @@ -63,4 +65,4 @@ HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ USER nginx # Start nginx -CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file +CMD ["nginx", "-g", "daemon off;"]