Skip to content

Commit

Permalink
chore: also use node 22 in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
nihalgonsalves committed Nov 8, 2024
1 parent a37ef23 commit 858931f
Showing 1 changed file with 5 additions and 4 deletions.
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 ./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

Expand All @@ -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/

Expand Down

0 comments on commit 858931f

Please sign in to comment.