mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 05:12:39 +00:00
Plugin runtime (#2050)
* feat: plugin run (#1950) * feat: plugin run * fix * ui * fix * change user input type * fix * fix * temp * split out plugin chat * perf: chatbox * perf: chatbox * fix: plugin runtime (#2032) * fix: plugin runtime * fix * fix build * fix build * perf: chat send prompt * perf: chat log ux * perf: chatbox context and share page plugin runtime * perf: plugin run time config * fix: ts * feat: doc * perf: isPc check * perf: variable input render * feat: app search * fix: response box height * fix: phone ui * perf: lock * perf: plugin route * fix: chat (#2049) --------- Co-authored-by: heheer <71265218+newfish-cmyk@users.noreply.github.com>
This commit is contained in:
@@ -4,7 +4,7 @@ FROM python:3.11-alpine AS python_base
|
||||
# 安装make和g++
|
||||
RUN apk add --no-cache make g++
|
||||
|
||||
FROM node:20.13-alpine AS install
|
||||
FROM node:20.14.0-alpine AS install
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
@@ -15,7 +15,7 @@ RUN apk add --no-cache make g++
|
||||
# copy py3.11
|
||||
COPY --from=python_base /usr/local /usr/local
|
||||
|
||||
RUN npm install -g pnpm@8.6.2
|
||||
RUN npm install -g pnpm@9.4.0
|
||||
RUN [ -z "$proxy" ] || pnpm config set registry https://registry.npmmirror.com
|
||||
|
||||
COPY pnpm-lock.yaml pnpm-workspace.yaml ./
|
||||
@@ -26,7 +26,7 @@ RUN [ -f pnpm-lock.yaml ] || (echo "Lockfile not found." && exit 1)
|
||||
RUN pnpm i
|
||||
|
||||
# --------- builder -----------
|
||||
FROM node:20.13-alpine AS builder
|
||||
FROM node:20.14.0-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
@@ -35,11 +35,11 @@ COPY --from=install /app/node_modules /app/node_modules
|
||||
COPY ./projects/sandbox /app/projects/sandbox
|
||||
COPY --from=install /app/projects/sandbox /app/projects/sandbox
|
||||
|
||||
RUN npm install -g pnpm@8.6.2
|
||||
RUN npm install -g pnpm@9.4.0
|
||||
RUN pnpm --filter=sandbox build
|
||||
|
||||
# --------- runner -----------
|
||||
FROM node:20.13-alpine AS runner
|
||||
FROM node:20.14.0-alpine AS runner
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=builder /app/node_modules /app/node_modules
|
||||
|
Reference in New Issue
Block a user