diff --git a/Dockerfile b/Dockerfile index f0d2500..d029f7c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,9 +14,11 @@ RUN pnpm install --frozen-lockfile || pnpm install # Build stage FROM base AS builder WORKDIR /app +# Copy source first, then overwrite node_modules with deps stage +COPY rfunds-online/ . +RUN rm -rf node_modules .next COPY --from=deps /app/node_modules ./node_modules COPY --from=deps /encryptid-sdk /encryptid-sdk -COPY rfunds-online/ . RUN pnpm build # Production stage