-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev
More file actions
37 lines (27 loc) · 888 Bytes
/
Copy pathDockerfile.dev
File metadata and controls
37 lines (27 loc) · 888 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
35
36
37
# AgentBridge — Development Dockerfile
# Use this for local development with hot reload.
# For production, use the root Dockerfile.
FROM python:3.12-slim
WORKDIR /app
# Install dev dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
curl \
&& rm -rf /var/lib/apt/lists/*
# Create virtual environment
RUN python -m venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"
# Copy requirements first for layer caching
COPY requirements.txt .
RUN pip install --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
# Install dev extras
RUN pip install pytest pytest-asyncio httpx
# Copy source
COPY . .
# Install in editable mode
RUN pip install -e ".[dev]"
# Expose port
EXPOSE 8000
# Run with auto-reload for development
CMD ["uvicorn", "src.api.control_plane:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]