diff --git a/Dockerfile b/Dockerfile index 9dc08a8f0..988250766 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # syntax = docker/dockerfile:1.7 -FROM node:16.20.2-slim as node +FROM node:20.15.0-slim as node WORKDIR /app COPY --link package.json yarn.lock ./ RUN --mount=type=cache,uid=1000,target=/app/.cache/node_modules \ diff --git a/schemas/Dockerfile b/schemas/Dockerfile index aaf885f5f..0857d8e65 100644 --- a/schemas/Dockerfile +++ b/schemas/Dockerfile @@ -4,7 +4,7 @@ COPY ./swagger.yml ./ WORKDIR /mock-server RUN java -jar /opt/swagger-codegen-cli/swagger-codegen-cli.jar generate -l nodejs-server -i /mock-seed/swagger.yml -l nodejs-server -o ./ -FROM node:16.20.2-alpine as mock +FROM node:20.15.0-alpine as mock WORKDIR /mock-server COPY --from=builder /mock-server ./ RUN npm install