mirror of
https://github.com/SamyRai/tercul-frontend.git
synced 2025-12-27 03:41:34 +00:00
Fix Docker build for Yarn v4
- Replace deprecated 'yarn install --immutable --production' with 'yarn workspaces focus --production' - This resolves the YN0050 error in CI Docker builds Yarn v4 deprecated the --production flag on install command.
This commit is contained in:
parent
ca75d868c6
commit
5fb9a1a1af
@ -36,7 +36,7 @@ WORKDIR /app
|
|||||||
COPY .yarnrc.yml package.json yarn.lock ./
|
COPY .yarnrc.yml package.json yarn.lock ./
|
||||||
|
|
||||||
# Install production dependencies (uses PnP)
|
# Install production dependencies (uses PnP)
|
||||||
RUN yarn install --immutable --production
|
RUN yarn workspaces focus --production
|
||||||
|
|
||||||
# Copy PnP files and built application from builder stage
|
# Copy PnP files and built application from builder stage
|
||||||
COPY --from=builder --chown=nextjs:nodejs /app/.pnp.cjs /app/.pnp.loader.mjs ./
|
COPY --from=builder --chown=nextjs:nodejs /app/.pnp.cjs /app/.pnp.loader.mjs ./
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user