File tree Expand file tree Collapse file tree 6 files changed +7231
-4854
lines changed Expand file tree Collapse file tree 6 files changed +7231
-4854
lines changed Original file line number Diff line number Diff line change @@ -7,3 +7,4 @@ Dockerfile
7
7
Makefile
8
8
.github
9
9
.git
10
+ .yarn
Original file line number Diff line number Diff line change 4
4
/node_modules
5
5
/.pnp
6
6
.pnp.js
7
- .yarn / install-state.gz
7
+ .yarn
8
8
9
9
# testing
10
10
/coverage
Original file line number Diff line number Diff line change
1
+ nodeLinker : node-modules
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ ARG NODE_VERSION=lts
3
3
FROM node:$NODE_VERSION-alpine AS builder
4
4
ENV YARN_CACHE_FOLDER=/opt/yarncache
5
5
WORKDIR /opt/app
6
- COPY package.json yarn.lock ./
7
- RUN yarn install --frozen-lockfile
6
+ COPY package.json yarn.lock .yarnrc.yml .yarn/ . /
7
+ RUN corepack enable && yarn install --immutable
8
8
# patch logging for requestHandler
9
9
RUN sed -Ei \
10
10
-e '/await requestHandler/iconst __start = new Date;' \
@@ -40,6 +40,12 @@ RUN chown nextjs:nodejs .next
40
40
COPY --from=builder --chown=nextjs:nodejs /opt/app/.next/standalone ./
41
41
COPY --from=builder --chown=nextjs:nodejs /opt/app/.next/static ./.next/static
42
42
43
+ # Copy Yarn Berry files for runtime (if needed for PnP or CLI usage)
44
+ COPY --from=builder /opt/app/.yarnrc.yml ./
45
+ COPY --from=builder /opt/app/.yarn ./.yarn
46
+ COPY --from=builder /opt/app/package.json ./
47
+ COPY --from=builder /opt/app/yarn.lock ./
48
+
43
49
USER nextjs
44
50
45
51
EXPOSE 3000
Original file line number Diff line number Diff line change 49
49
"typescript" : " ^5.4.3" ,
50
50
"typescript-eslint" : " ^7.4.0"
51
51
},
52
- "packageManager" : " yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e "
52
+ "packageManager" : " yarn@4.9.1 "
53
53
}
You can’t perform that action at this time.
0 commit comments