Skip to content

Commit e3aba65

Browse files
committed
feat: attempt to cache yarn deps and next.js cache
Signed-off-by: Seren_Modz 21 <seren@kings-world.net>
1 parent e440c29 commit e3aba65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ENV YARN_DISABLE_GIT_HOOKS=1
1010
COPY .yarn/ .yarn/
1111
COPY package.json yarn.lock .yarnrc.yml ./
1212

13-
RUN yarn --immutable
13+
RUN --mount=type=cache,target=/root/.yarn yarn --immutable
1414

1515
FROM base AS builder
1616
WORKDIR /app
@@ -21,7 +21,7 @@ ENV NEXT_TELEMETRY_DISABLED=1 \
2121
NODE_ENV=production \
2222
CI=true
2323

24-
RUN yarn build
24+
RUN --mount=type=cache,target=/app/.next/cache yarn build
2525

2626
FROM base AS runner
2727
WORKDIR /app

0 commit comments

Comments
 (0)