mirror of
https://github.com/MemeMeow-Studio/MemeMeow.git
synced 2026-10-17 04:41:01 +08:00
1e4727cf2b
Run the API, visual backend, and authenticated Agent executor through Compose with persistent volumes and safe start/stop diagnostics. 通过 Compose 运行 API、视觉后端和带认证的 Agent executor,提供持久卷及安全启停诊断。
23 lines
494 B
Docker
23 lines
494 B
Docker
FROM node:22-slim AS frontend-build
|
|
|
|
WORKDIR /frontend
|
|
COPY frontend/package*.json ./
|
|
RUN npm ci
|
|
COPY frontend ./
|
|
RUN npm run build
|
|
|
|
FROM python:3.12-slim AS runtime
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends libgl1 libglib2.0-0 && rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY requirements.txt .
|
|
|
|
RUN pip install -r requirements.txt
|
|
|
|
COPY . .
|
|
COPY --from=frontend-build /frontend/dist ./frontend/dist
|
|
|
|
CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "8275"]
|