mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
fix(docker): prevent snyk null in severity scores for unassigned CVEs (#3746)
* Fix snyk null in severity scores for unassigned CVEs * Keep node 18
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
# the final image, with only the dependencies and compiled files
|
||||
|
||||
# build only with the platform of the host machine, since it only uses for dev purposes
|
||||
FROM --platform=$BUILDPLATFORM node:18.19.0-alpine3.19 AS deps
|
||||
FROM --platform=$BUILDPLATFORM node:18.20.4-alpine3.20 AS deps
|
||||
WORKDIR /app
|
||||
# copy necessary for install dependencies
|
||||
COPY package.json yarn.lock .yarnrc.yml ./
|
||||
@@ -18,7 +18,7 @@ COPY ./.yarn/releases ./.yarn/releases
|
||||
RUN yarn install --immutable
|
||||
|
||||
# build only with the platform of the host machine, since we just need its files
|
||||
FROM --platform=$BUILDPLATFORM node:18.19.0-alpine3.19 AS builder
|
||||
FROM --platform=$BUILDPLATFORM node:18.20.4-alpine3.20 AS builder
|
||||
# copy the dependencies (node_modules) from the deps image
|
||||
COPY --from=deps /app /app
|
||||
WORKDIR /app
|
||||
@@ -29,7 +29,7 @@ COPY .swcrc ./
|
||||
# compile the files
|
||||
RUN yarn build
|
||||
|
||||
FROM node:18.19.0-alpine3.19 AS runner
|
||||
FROM node:18.20.4-alpine3.20 AS runner
|
||||
# copy the compiled files from the builder image
|
||||
COPY --from=builder /app/dist /app/dist
|
||||
# copy the dependencies from the deps image
|
||||
|
||||
Reference in New Issue
Block a user