From 858931fb2af859f37dbc2025b78643c92f7e25de Mon Sep 17 00:00:00 2001 From: Nihal Gonsalves Date: Fri, 8 Nov 2024 09:30:59 +0100 Subject: [PATCH] chore: also use node 22 in docker --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3ef9543..b894e10 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:20-slim as builder +FROM node:22-slim as builder WORKDIR /usr/src/app @@ -7,14 +7,14 @@ COPY ./yarn.lock ./ COPY ./.yarnrc.yml ./ RUN corepack enable -RUN yarn install --immutable +RUN --mount=type=cache,target=/root/.yarn YARN_CACHE_FOLDER=/root/.yarn yarn install --immutable COPY tsconfig.json . COPY src/ ./src/ RUN yarn build -FROM node:20-slim +FROM node:22-slim WORKDIR /usr/src/app @@ -23,7 +23,8 @@ COPY ./yarn.lock ./ COPY ./.yarnrc.yml ./ RUN corepack enable -RUN yarn install --immutable +# hadolint ignore=DL3060 +RUN --mount=type=cache,target=/root/.yarn YARN_CACHE_FOLDER=/root/.yarn yarn install --immutable COPY --from=builder /usr/src/app/build/ ./build/