Skip to content

Commit 5abbba8

Browse files
Shivaji KharseShivaji Kharse
authored andcommitted
fix cves
1 parent 3bde9d4 commit 5abbba8

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
####################
44
FROM node:22.16.0-alpine AS client
55

6-
RUN apk update && apk --no-cache --virtual build-dependencies add make git bash python3 gcc g++
6+
RUN apk update && apk upgrade --no-cache && apk --no-cache --virtual build-dependencies add make git bash python3 gcc g++
77

88
# build package manifest layer
99
RUN mkdir -p /ratel/client
1010
WORKDIR /ratel/client
1111
COPY ./client/package.json /ratel/client
12-
RUN npm install --legacy-peer-deps --no-optional
12+
RUN npm install --legacy-peer-deps
1313

1414
# copy all assets and build
1515
COPY . /ratel
@@ -18,7 +18,7 @@ RUN npm run build:prod
1818
######
1919
# Build Server
2020
####################
21-
FROM golang:1.23.10-alpine3.22 AS server
21+
FROM golang:1.26.2-alpine3.22 AS server
2222
ENV PATH="/go/bin:$PATH"
2323

2424

@@ -38,6 +38,7 @@ RUN ./scripts/build.prod.sh --server
3838
FROM alpine:3.22 AS final
3939

4040
RUN apk add --no-cache ca-certificates && \
41+
apk upgrade --no-cache && \
4142
addgroup -g 1000 dgraph && \
4243
adduser -u 1000 -G dgraph -s /bin/sh -D dgraph
4344
# copy server artifact w/ embedded client artifact (bindata) to final stage

0 commit comments

Comments
 (0)