From 2477e9bb0f83336b68303a849131136def873689 Mon Sep 17 00:00:00 2001 From: g Date: Sun, 11 Jan 2026 07:48:01 +0000 Subject: [PATCH] fix docker? --- Dockerfile | 7 +- components/dashboard/ChatDetail.tsx | 19 ++++- components/forms/image-upload.tsx | 9 ++- components/modals/broadcast-dialog.tsx | 11 ++- middleware.ts | 107 ------------------------- next.config.mjs | 4 +- public/git-info.json | 4 +- 7 files changed, 41 insertions(+), 120 deletions(-) delete mode 100644 middleware.ts 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 }) {