fix: fuck docker
This commit is contained in:
+5
-1
@@ -52,6 +52,7 @@ CMD ["sh", "-c", "npx prisma migrate deploy && node dist/main.js"]
|
|||||||
# ---- Production Dashboard image ----
|
# ---- Production Dashboard image ----
|
||||||
FROM node:20-alpine AS dashboard
|
FROM node:20-alpine AS dashboard
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
RUN npm install -g pnpm
|
||||||
|
|
||||||
COPY --from=builder /app/apps/dashboard/.next ./.next
|
COPY --from=builder /app/apps/dashboard/.next ./.next
|
||||||
COPY --from=builder /app/apps/dashboard/package.json ./
|
COPY --from=builder /app/apps/dashboard/package.json ./
|
||||||
@@ -61,6 +62,9 @@ RUN mkdir -p public
|
|||||||
# Copy installed node_modules
|
# Copy installed node_modules
|
||||||
COPY --from=builder /app/node_modules ./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
|
EXPOSE 3000
|
||||||
|
|
||||||
CMD ["npx", "next", "start"]
|
CMD ["pnpm", "next", "start"]
|
||||||
Reference in New Issue
Block a user