feedback
feedback copied to clipboard
[how-to-connect-adk-to-deployed-cloud-run-llm]: Fix DockerFile to include build-essential
Fix for success build
FROM python:3.13-slim
# Copy uv from the official image
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
# System dependencies
RUN apt-get update && apt-get install -y curl build-essential \
&& rm -rf /var/lib/apt/lists/*
# Working directory
WORKDIR /app
# Copy project files
COPY . .
# Create a venv and sync packages
RUN python3 -m venv .venv && \
.venv/bin/pip install --upgrade pip && \
uv sync --python .venv/bin/python
EXPOSE 8080
CMD ["uv", "run", "uvicorn", "server:app", "--host", "0.0.0.0", "--port", "8080"]