Compare commits

..

No commits in common. "51e22599dd61ce72b15ba79601cfaa60af0167be" and "c0d205f77e682cda155efa32f2500347fc6bed62" have entirely different histories.

2 changed files with 15 additions and 7 deletions

View File

@ -1,21 +1,25 @@
FROM node:22-alpine AS base FROM node:18-alpine AS base
# Install dependencies only when needed # Install dependencies only when needed
FROM base AS deps FROM base AS deps
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. # Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN apk add --no-cache libc6-compat RUN apk add --no-cache libc6-compat
WORKDIR /app WORKDIR /app
# Install dependencies based on the preferred package manager # Install dependencies based on the preferred package manager
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* \node_modules ./ COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
RUN corepack enable RUN \
RUN if [ -f yarn.lock ]; then yarn; fi if [ -f yarn.lock ]; then yarn --immutable; \
RUN ls -la elif [ -f package-lock.json ]; then npm ci; \
elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm i --frozen-lockfile; \
else echo "Lockfile not found." && exit 1; \
fi
# Rebuild the source code only when needed # Rebuild the source code only when needed
FROM base AS builder FROM base AS builder
WORKDIR /app WORKDIR /app
COPY --from=deps ./node_modules ./node_modules COPY --from=deps /app/node_modules ./node_modules
COPY . . COPY . .
ENV NEXT_TELEMETRY_DISABLED=1 ENV NEXT_TELEMETRY_DISABLED=1

View File

@ -1 +1,5 @@
{"next-js":3,"tailwind":2,"guide":4,"feature":1,"yoyoyoy":1,"github":1,"writings":1,"book":1,"reflection":1,"markdown":1,"code":1,"features":1} <<<<<<< HEAD
{}
=======
{"github":1,"guide":3,"next-js":2,"tailwind":1,"writings":1,"book":1,"reflection":1}
>>>>>>> f16543e1d30ccacc510db3a25ca4d48dfa82ad9a