-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (27 loc) · 855 Bytes
/
Dockerfile
File metadata and controls
42 lines (27 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# syntax=docker/dockerfile:1
FROM python:3.13-slim AS backend
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
WORKDIR /app
COPY pyproject.toml uv.lock ./
RUN pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir \
"agentscope>=0.1.0" \
"dashscope>=1.14.0" \
"fastapi>=0.110.0" \
"numpy>=1.24.0" \
"openai>=1.0.0" \
"pydantic>=2.0.0" \
"typing-extensions>=4.5.0" \
"uvicorn[standard]>=0.27.0"
COPY . .
ENV PYTHONPATH=/app/backend:/app
EXPOSE 8000
CMD ["uvicorn", "backend.api_server:app", "--host", "0.0.0.0", "--port", "8000"]
FROM node:20-alpine AS frontend
WORKDIR /app
COPY frontend/package.json frontend/package-lock.json ./
RUN npm install
COPY frontend/ ./
EXPOSE 5173
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0", "--port", "5173"]