-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (23 loc) · 839 Bytes
/
Dockerfile
File metadata and controls
34 lines (23 loc) · 839 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
# syntax=docker/dockerfile:1.7
# Use an official Python base image compatible with requires-python 3.13
FROM python:3.13-slim AS base
ENV UV_SYSTEM_PYTHON=1 \
UV_LINK_MODE=copy \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
# Install uv
RUN pip install --no-cache-dir uv
WORKDIR /app
# Copy only project files needed for dependency resolution first for better caching
COPY pyproject.toml ./
# Install project dependencies into the system interpreter using uv
RUN uv sync --no-dev --no-install-project
# Copy the rest of the app
COPY . .
# Copy frontend files
COPY frontend/ ./frontend/
# Ensure data directory exists (mounted volume can override)
RUN mkdir -p /app/data/chroma_langchain_db
EXPOSE 7070 9000
# Default command: run both servers
CMD ["sh", "-c", "uv run python server.py & uv run python proxy.py"]