-
Notifications
You must be signed in to change notification settings - Fork 145
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (21 loc) · 796 Bytes
/
Dockerfile
File metadata and controls
30 lines (21 loc) · 796 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
FROM python:3.11-slim
WORKDIR /app
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
RUN apt-get update \
&& apt-get install -y --no-install-recommends curl \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY app ./app
# static/ (WebUI 前端) 由服务启动时自动从 GitHub Release 拉取,无需内置
COPY skills ./skills
COPY prompts ./prompts
COPY rules ./rules
COPY config.example.yaml ./config.example.yaml
RUN mkdir -p /data/config /app/data
ENV OPENMOSS_CONFIG=/data/config/config.yaml
HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
CMD curl -f http://localhost:6565/api/health || exit 1
EXPOSE 6565
CMD ["python", "-m", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "6565"]