24 lines
599 B
Docker
24 lines
599 B
Docker
FROM python:3.12-slim
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
PYTHONUNBUFFERED=1 \
|
|
PIP_NO_CACHE_DIR=1 \
|
|
PYTHONPATH=/app
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends curl \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY libs/agent_framework /opt/agent_framework
|
|
COPY apps/agent_gateway/requirements.txt /tmp/requirements.txt
|
|
RUN pip install --upgrade pip \
|
|
&& pip install -e /opt/agent_framework \
|
|
&& pip install -r /tmp/requirements.txt
|
|
|
|
COPY apps/agent_gateway /app
|
|
|
|
EXPOSE 8010
|
|
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8010"]
|