Skip to content

chore: also use node 22 in docker #497

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20-slim as builder
FROM node:22-slim as builder

Check warning on line 1 in Dockerfile

View workflow job for this annotation

GitHub Actions / build

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

WORKDIR /usr/src/app

Expand All @@ -7,14 +7,14 @@
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

Expand All @@ -23,7 +23,8 @@
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/

Expand Down