diff --git a/Dockerfile b/Dockerfile index 9663973..307d030 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,31 +1,15 @@ -# syntax=docker/dockerfile:1 - -FROM docker.ibagher.ir/node:22-bullseye-slim AS builder +FROM docker.ibagher.ir/node:20-bullseye-slim WORKDIR /app -# Increase memory for large builds -ENV NODE_OPTIONS="--max-old-space-size=4096" -ENV NEXT_TELEMETRY_DISABLED=1 +COPY yarn*.lock package*.json ./ -COPY package.json yarn.lock ./ -RUN --mount=type=cache,target=/usr/local/share/.cache/yarn \ - yarn install +RUN yarn install && yarn cache clean -COPY . . -RUN --mount=type=cache,target=/app/.next/cache \ - yarn build +COPY . /app -FROM docker.ibagher.ir/node:22-bullseye-slim AS runner - -WORKDIR /app -ENV NODE_ENV=production - -# Copy standalone output -COPY --from=builder /app/.next/standalone ./ -COPY --from=builder /app/.next/static ./.next/static -COPY --from=builder /app/public ./public +RUN yarn build EXPOSE 3000 -CMD ["node", "server.js"] \ No newline at end of file +CMD ["yarn", "start"] \ No newline at end of file diff --git a/components/tabs/llmPanel.js b/components/tabs/llmPanel.js index 968c973..6256041 100644 --- a/components/tabs/llmPanel.js +++ b/components/tabs/llmPanel.js @@ -56,7 +56,7 @@ export default function LlmPanel() { border={"1px"} borderColor={"gray.300"} /> - حداکثر تعداد توکن + حداکثر تعداد توکن: @@ -71,7 +71,7 @@ export default function LlmPanel() { border={"1px"} borderColor={"gray.300"} /> - تعداد + تعداد: @@ -87,7 +87,7 @@ export default function LlmPanel() { border={"1px"} borderColor={"gray.300"} /> - پرامپت + پرامپت: