chore(docker): copy prisma folder before installing dependencies

This commit is contained in:
cfngc4594 2025-03-06 14:43:23 +08:00
parent 173fb3cb29
commit cce95d76d5

View File

@ -10,6 +10,9 @@ FROM base AS deps
RUN apk add --no-cache libc6-compat RUN apk add --no-cache libc6-compat
WORKDIR /app WORKDIR /app
# Copy the prisma folder before installing dependencies
COPY prisma ./prisma
# 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* bun.lock* .npmrc* ./ COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* bun.lock* .npmrc* ./
RUN \ RUN \