-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (23 loc) · 786 Bytes
/
Dockerfile
File metadata and controls
31 lines (23 loc) · 786 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
# Dockerfile for Summit-Sim Chainlit Application
FROM ghcr.io/astral-sh/uv:python3.13-trixie-slim
# Set working directory
WORKDIR /app
# Enable bytecode compilation for faster startup
ENV UV_COMPILE_BYTECODE=1
# Copy dependency files first for better caching
COPY pyproject.toml uv.lock ./
# Install dependencies (without syncing project)
RUN uv sync --frozen
# Copy application code
COPY src/ ./src/
COPY .chainlit/ ./.chainlit/
COPY public/ ./public/
COPY chainlit.md ./
RUN ln -s chainlit.md chainlit_en-US.md
# Set environment variables
ENV PYTHONUNBUFFERED=1
ENV PYTHONDONTWRITEBYTECODE=1
# Expose Chainlit port
EXPOSE 8000
# Run Chainlit with hot reload for development
CMD ["uv", "run", "chainlit", "run", "src/summit_sim/main.py", "--host", "0.0.0.0", "--port", "8000"]