File size: 520 Bytes
0157ac7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
89ba257
0157ac7
 
 
 
 
 
 
 
 
 
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
FROM python:3.14-slim

WORKDIR /app

# Install uv
RUN pip install uv

# Copy project files
COPY pyproject.toml uv.lock ./
COPY api/ ./api/
COPY cli/ ./cli/
COPY config/ ./config/
COPY core/ ./core/
COPY messaging/ ./messaging/
COPY providers/ ./providers/
COPY server.py ./
COPY templates/ ./templates/
COPY .env.example ./

# Install dependencies
RUN uv sync --frozen --no-dev

# Expose port (HF Spaces default)
EXPOSE 7860

# Run server
CMD ["uv", "run", "uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]