-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (31 loc) · 985 Bytes
/
Dockerfile
File metadata and controls
42 lines (31 loc) · 985 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
38
39
40
41
42
# Deep Research Agent
# Runs the VC Intelligence research agent on Agent Field
FROM python:3.10-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
&& rm -rf /var/lib/apt/lists/*
# Copy dependency files first for better caching
COPY pyproject.toml README.md ./
# Install Python dependencies
RUN pip install --upgrade pip && \
pip install -e .
# Copy application code
COPY . .
# Create non-root user
RUN useradd -m -s /bin/bash appuser && \
chown -R appuser:appuser /app
USER appuser
# Default port (can be overridden via PORT env var)
EXPOSE 8001
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \
CMD curl -f http://localhost:${PORT:-8001}/health || exit 1
# Run the agent
CMD ["python", "main.py"]