-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (33 loc) · 1.04 KB
/
Copy pathDockerfile
File metadata and controls
42 lines (33 loc) · 1.04 KB
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
FROM python:3.12-slim
# Avoid Python temp files
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PORT=8080
# Install system dependencies needed by your Python packages
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
gcc \
g++ \
libffi-dev \
libssl-dev \
git \
curl \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy only dependency files first to leverage Docker cache
COPY pyproject.toml pyproject.toml
COPY readme.md readme.md
COPY requirements.txt requirements.txt
COPY AI_Newsletter/ AI_Newsletter/
# Upgrade pip + install build tools (needed for numpy/cython builds)
RUN pip install --upgrade pip setuptools wheel build cython numpy
# Install your package + google-adk CLI from pyproject.toml
RUN pip install --no-cache-dir .
# Expose ADK UI port
EXPOSE 8080
# Healthcheck (optional)
HEALTHCHECK --interval=30s --timeout=3s \
CMD curl -f http://localhost:${PORT}/ || exit 1
# Run ADK Web UI
CMD ["adk", "web", "--host", "0.0.0.0", "--port", "8080"]