Update frontend runtime image to patched libpng
This commit is contained in:
+5
-3
@@ -27,11 +27,13 @@ COPY . .
|
|||||||
# Build the application
|
# Build the application
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# Production stage
|
# Production stage (use Alpine with patched libpng)
|
||||||
FROM nginx:alpine
|
FROM nginx:1.27-alpine3.21
|
||||||
|
|
||||||
# Upgrade all packages to fix security vulnerabilities (BusyBox CVEs)
|
# Upgrade all packages to fix security vulnerabilities (BusyBox CVEs)
|
||||||
RUN apk upgrade --no-cache
|
RUN apk upgrade --no-cache
|
||||||
|
# Ensure libpng includes CVE fixes
|
||||||
|
RUN apk add --no-cache 'libpng>=1.6.51-r0'
|
||||||
|
|
||||||
# Install runtime dependencies
|
# Install runtime dependencies
|
||||||
RUN apk add --no-cache curl
|
RUN apk add --no-cache curl
|
||||||
@@ -63,4 +65,4 @@ HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
|||||||
USER nginx
|
USER nginx
|
||||||
|
|
||||||
# Start nginx
|
# Start nginx
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
CMD ["nginx", "-g", "daemon off;"]
|
||||||
|
|||||||
Reference in New Issue
Block a user