diff --git a/Dockerfile b/Dockerfile index 4b8e573..4a5c1b4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,8 +9,8 @@ WORKDIR /app # Install git early for commit hash RUN apk add --no-cache git -# Install pnpm with cache mount for better performance -RUN npm install -g pnpm +# Install pnpm properly for Docker +RUN corepack enable && corepack prepare pnpm@latest --activate # Copy package files for dependency installation COPY package.json pnpm-lock.yaml ./ @@ -45,6 +45,9 @@ FROM node:20-alpine AS runner # Set working directory inside the container WORKDIR /app +# Install pnpm in production stage +RUN corepack enable && corepack prepare pnpm@latest --activate + RUN mkdir -p /app/public # Copy only necessary files from builder diff --git a/components/dashboard/ChatDetail.tsx b/components/dashboard/ChatDetail.tsx index 81ab8ae..6a1f3ea 100644 --- a/components/dashboard/ChatDetail.tsx +++ b/components/dashboard/ChatDetail.tsx @@ -13,6 +13,7 @@ import { toast } from "sonner"; import { ArrowLeft, Send, RefreshCw, File, FileText, Image as ImageIcon, Download } from "lucide-react"; import { getCookie, clientFetch } from "@/lib/api"; import { ImageViewerModal } from "@/components/modals/image-viewer-modal"; +import Image from "next/image"; import BuyerOrderInfo from "./BuyerOrderInfo"; import { useIsTouchDevice } from "@/hooks/use-mobile"; import { useChromebookScroll, useSmoothScrollToBottom } from "@/hooks/use-chromebook-scroll"; @@ -742,13 +743,23 @@ export default function ChatDetail({ chatId }: { chatId: string }) {