mirror of
https://github.com/hoshikawa2/agent_platform_oci.git
synced 2026-09-07 10:13:46 +00:00
23 lines
562 B
Docker
23 lines
562 B
Docker
FROM python:3.12-slim
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
PYTHONUNBUFFERED=1 \
|
|
PIP_NO_CACHE_DIR=1 \
|
|
PYTHONPATH=/app \
|
|
MCP_GATEWAY_CONFIG_PATH=/app/config/mcp_gateway.yaml
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends curl \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY apps/mcp_gateway/requirements.txt /tmp/requirements.txt
|
|
RUN pip install --upgrade pip \
|
|
&& pip install -r /tmp/requirements.txt
|
|
|
|
COPY apps/mcp_gateway /app
|
|
|
|
EXPOSE 8300
|
|
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8300"]
|