diff --git a/Dockerfile b/Dockerfile index 104384b..2d2ca78 100644 --- a/Dockerfile +++ b/Dockerfile @@ -52,6 +52,7 @@ CMD ["sh", "-c", "npx prisma migrate deploy && node dist/main.js"] # ---- Production Dashboard image ---- FROM node:20-alpine AS dashboard WORKDIR /app +RUN npm install -g pnpm COPY --from=builder /app/apps/dashboard/.next ./.next COPY --from=builder /app/apps/dashboard/package.json ./ @@ -61,6 +62,9 @@ RUN mkdir -p public # Copy installed node_modules COPY --from=builder /app/node_modules ./node_modules +# Resolve workspace symlinks for shared package +COPY --from=builder /app/packages/shared/dist ./node_modules/@kooltab/shared/dist + EXPOSE 3000 -CMD ["npx", "next", "start"] \ No newline at end of file +CMD ["pnpm", "next", "start"] \ No newline at end of file