Skip to content

Commit cefd7c7

Browse files
author
Hernan Rojek Moriceau
committed
build (docker): Upgrade base image for nginx and vulnerabilities mitigation
1 parent f85af6a commit cefd7c7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ RUN yarn run build
2525

2626
# ==== SET ENV NGINX =====
2727
# Bundle static assets with nginx
28-
FROM nginxinc/nginx-unprivileged:1.23.0-alpine as production
28+
FROM nginxinc/nginx-unprivileged:1.23.3-alpine as production
2929
ENV NODE_ENV production
3030
# Copy built assets from `builder` image
3131
COPY --from=builder /app/build /usr/share/nginx/html
@@ -43,7 +43,14 @@ CMD ["nginx", "-g", "daemon off;"]
4343

4444
# needed for chmod
4545
USER root
46+
4647
# needed for write access for deployment.sh
4748
RUN mkdir /tmp/proxy_temp && chmod 0757 /usr/share/nginx/html/
49+
50+
# needed to mitigate CVE-2023-23914, CVE-2023-23915 and CVE-2023-23916
51+
RUN apk update && \
52+
apk upgrade && \
53+
apk add libcurl>=7.87.0-r2 curl>=7.87.0-r2
54+
4855
# reinstate the user
4956
USER nginx

0 commit comments

Comments
 (0)