Skip to content

Commit 5576e8d

Browse files
RI-5092: Adjust docker image so that there are no critical vulnerabilities coming from base image
1 parent 3a4f000 commit 5576e8d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# the best way to minimize the number of node_module restores and build steps
77
# while still keeping the final image small.
88

9-
FROM node:18.15.0-alpine as build
9+
FROM node:18.17.0-alpine as build
1010

1111
# build time args and environment variables
1212
ARG SERVER_TLS_CERT
@@ -47,7 +47,7 @@ RUN yarn --cwd ./redisinsight/api install --production
4747
COPY ./redisinsight/api/.yarnclean.prod ./redisinsight/api/.yarnclean
4848
RUN yarn --cwd ./redisinsight/api autoclean --force
4949

50-
FROM node:18.15.0-alpine
50+
FROM node:18.18-alpine
5151

5252
# runtime args and environment variables
5353
ARG NODE_ENV=production
@@ -62,6 +62,10 @@ ENV SERVER_STATIC_CONTENT=true
6262
ENV BUILD_TYPE='DOCKER_ON_PREMISE'
6363
ENV APP_FOLDER_ABSOLUTE_PATH='/data'
6464

65+
# this resolves CVE-2023-5363
66+
# TODO: remove this line once we update to base image that doesn't have this vulnerability
67+
RUN apk update && apk upgrade --no-cache libcrypto3 libssl3
68+
6569
# set workdir
6670
WORKDIR /usr/src/app
6771

0 commit comments

Comments
 (0)