-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (21 loc) · 694 Bytes
/
Copy pathDockerfile
File metadata and controls
26 lines (21 loc) · 694 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
FROM python:3.12-slim AS builder
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
WORKDIR /app
COPY pyproject.toml uv.lock ./
COPY deepseek-api/ deepseek-api/
COPY Gemini-API/ Gemini-API/
ENV SETUPTOOLS_SCM_PRETEND_VERSION=0.1.0
RUN uv sync --frozen --no-dev
FROM python:3.12-slim
WORKDIR /app
COPY --from=builder /app/.venv /app/.venv
COPY core/ core/
COPY deepseek-api/ deepseek-api/
COPY Gemini-API/ Gemini-API/
COPY web/dist/ web/dist/
# Persistent data directory for profiles, API keys, and session storage
RUN mkdir -p /data
ENV UNOFFICIAL_API_DATA_DIR=/data
ENV PATH="/app/.venv/bin:$PATH"
EXPOSE 8088
CMD ["uvicorn", "core.server:app", "--host", "0.0.0.0", "--port", "8088"]