newer/more-secure base image (#17)

* newer/more-secure base image

* patches openssl
This commit is contained in:
Sampson authored and GitHub committed 2025-07-14 15:33:42 -07:00
1 parent 05f66d611f
commit 33e1741fdf
1 file changed
+8 -2
+8 -2
View File
@@ -1,4 +1,7 @@
FROM node:22.16.0-bookworm-slim@sha256:048ed02c5fd52e86fda6fbd2f6a76cf0d4492fd6c6fee9e2c463ed5108da0e34 AS builder
FROM node:alpine@sha256:22b3c1a1171c798c0429f36272922dbb356bbab8a6d11b3b095a143d3321262a AS builder
# Update OpenSSL to fix CVE-2025-4575
RUN apk add --no-cache openssl=3.5.1-r0
WORKDIR /app
@@ -12,7 +15,10 @@ COPY ./tsconfig.json ./tsconfig.json
RUN npm run build
FROM node:22.16.0-bookworm-slim@sha256:048ed02c5fd52e86fda6fbd2f6a76cf0d4492fd6c6fee9e2c463ed5108da0e34 AS release
FROM node:alpine@sha256:22b3c1a1171c798c0429f36272922dbb356bbab8a6d11b3b095a143d3321262a AS release
# Update OpenSSL to fix CVE-2025-4575
RUN apk add --no-cache openssl=3.5.1-r0
WORKDIR /app