OSVauco/opax-mcp/Dockerfile
Gemini Agent 7261cf012b fix(opax-mcp): install google-cloud-cli in runtime
Several MCP tools call gcloud via subprocess. The container did not include gcloud, causing those tools to fail at runtime. This change installs the google-cloud-cli in the Docker image and has been verified with list_gce_instances and describe_service.
2026-07-16 17:16:13 +00:00

21 lines
714 B
Docker

FROM python:3.12-slim
RUN apt-get update && apt-get install -y --no-install-recommends curl gnupg ca-certificates \
&& echo "deb [signed-by=/usr/share/keyrings/google-cloud.gpg] https://packages.cloud.google.com/apt cloud-sdk main" > /etc/apt/sources.list.d/google-cloud-sdk.list \
&& curl -sS https://packages.cloud.google.com/apt/doc/apt-key.gpg | gpg --dearmor -o /usr/share/keyrings/google-cloud.gpg \
&& apt-get update -y && apt-get install -y google-cloud-cli \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
ENV PORT=8080
EXPOSE 8080
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "8080"]