-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (26 loc) · 952 Bytes
/
Copy pathDockerfile
File metadata and controls
36 lines (26 loc) · 952 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
FROM python:3.12-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y git nodejs npm && rm -rf /var/lib/apt/lists/*
# Pre-install MCP servers to avoid runtime downloads
RUN npm install -g tavily-mcp
# Copy requirements
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy local library ag_ui_adk
COPY ag_ui_adk /app/ag_ui_adk
# ag_ui_adk is a package, so we rely on PYTHONPATH=/app to import it
# Copy application code
COPY procurement /app/procurement
# Copy credentials and config
# In production, use Secret Manager for these!
COPY credentials.json /app/credentials.json
COPY token.json /app/token.json
COPY service-account-key.json /app/service-account-key.json
COPY procurement/.env /app/procurement/.env
# Set PYTHONPATH
ENV PYTHONPATH=/app
# Expose port
ENV PORT=8080
# Run the application
CMD ["uvicorn", "procurement.agent:app", "--host", "0.0.0.0", "--port", "8080"]