We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a37ef23 commit 858931fCopy full SHA for 858931f
Dockerfile
@@ -1,4 +1,4 @@
1
-FROM node:20-slim as builder
+FROM node:22-slim as builder
2
3
WORKDIR /usr/src/app
4
@@ -7,14 +7,14 @@ COPY ./yarn.lock ./
7
COPY ./.yarnrc.yml ./
8
9
RUN corepack enable
10
-RUN yarn install --immutable
+RUN --mount=type=cache,target=/root/.yarn YARN_CACHE_FOLDER=/root/.yarn yarn install --immutable
11
12
COPY tsconfig.json .
13
COPY src/ ./src/
14
15
RUN yarn build
16
17
-FROM node:20-slim
+FROM node:22-slim
18
19
20
@@ -23,7 +23,8 @@ COPY ./yarn.lock ./
23
24
25
26
+# hadolint ignore=DL3060
27
28
29
COPY --from=builder /usr/src/app/build/ ./build/
30
0 commit comments