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
77Makefile
88.github
99.git
10+ .yarn
Original file line number Diff line number Diff line change 44/node_modules
55/.pnp
66.pnp.js
7- .yarn / install-state.gz
7+ .yarn
88
99# testing
1010/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
33FROM node:$NODE_VERSION-alpine AS builder
44ENV YARN_CACHE_FOLDER=/opt/yarncache
55WORKDIR /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
88# patch logging for requestHandler
99RUN sed -Ei \
1010 -e '/await requestHandler/iconst __start = new Date;' \
@@ -40,6 +40,12 @@ RUN chown nextjs:nodejs .next
4040COPY --from=builder --chown=nextjs:nodejs /opt/app/.next/standalone ./
4141COPY --from=builder --chown=nextjs:nodejs /opt/app/.next/static ./.next/static
4242
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+
4349USER nextjs
4450
4551EXPOSE 3000
Original file line number Diff line number Diff line change 4949 "typescript" : " ^5.4.3" ,
5050 "typescript-eslint" : " ^7.4.0"
5151 },
52- "packageManager" : " yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e "
52+ "packageManager" : " yarn@4.9.1 "
5353}
You can’t perform that action at this time.
0 commit comments