1
0
mirror of https://github.com/XFox111/my-website.git synced 2026-04-22 07:28:01 +03:00

feat(dev): migrated from yarn to npm

This commit is contained in:
2025-12-11 05:52:27 +00:00
parent 57b3a72fa2
commit adb0b4b1b2
10 changed files with 23120 additions and 9098 deletions
+4 -7
View File
@@ -7,9 +7,8 @@ RUN apk add --no-cache libc6-compat
WORKDIR /app
# Install dependencies
COPY package.json yarn.lock .yarnrc.yml ./
RUN corepack enable
RUN yarn install
COPY package.json package-lock.json ./
RUN npm install
# Rebuild the source code only when needed
FROM base AS builder
@@ -17,15 +16,13 @@ WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
RUN corepack enable
# Next.js collects completely anonymous telemetry data about general usage.
# Learn more here: https://nextjs.org/telemetry
# Uncomment the following line in case you want to disable telemetry during the build.
# ENV NEXT_TELEMETRY_DISABLED 1
RUN yarn lint
RUN yarn build
RUN npm run lint
RUN npm run build
# Production image, copy all the files and run next
FROM base AS runner