Add fastgpt as seperate assistant mode
This commit is contained in:
@@ -2,6 +2,11 @@ FROM python:3.12-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Build this image from the project parent directory so both
|
||||
# engine-v3/engine and fastgpt-python-sdk are available in the context.
|
||||
# Example:
|
||||
# docker build -f engine-v3/engine/Dockerfile -t engine-v3 .
|
||||
|
||||
# Install system dependencies for audio processing
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
build-essential \
|
||||
@@ -12,11 +17,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install Python dependencies
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
COPY engine-v3/engine/requirements.txt /tmp/requirements.txt
|
||||
COPY fastgpt-python-sdk /deps/fastgpt-python-sdk
|
||||
RUN pip install --no-cache-dir -r /tmp/requirements.txt \
|
||||
&& pip install --no-cache-dir /deps/fastgpt-python-sdk
|
||||
|
||||
# Copy application code
|
||||
COPY . .
|
||||
COPY engine-v3/engine /app
|
||||
|
||||
# Create necessary directories
|
||||
RUN mkdir -p /app/logs /app/data/vad
|
||||
|
||||
Reference in New Issue
Block a user