24 lines
542 B
Docker
24 lines
542 B
Docker
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
build-essential \
|
|
git \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY requirements/base.txt requirements/base.txt
|
|
|
|
RUN pip install --no-cache-dir -r requirements/base.txt && \
|
|
pip install --no-cache-dir mcp gpt4all sentence-transformers chromadb
|
|
|
|
COPY apps /app/apps
|
|
COPY config /app/config
|
|
COPY mcp_agent /app/mcp_agent
|
|
COPY manage.py /app/
|
|
|
|
ENV PYTHONUNBUFFERED=1
|
|
ENV DJANGO_SETTINGS_MODULE=config.settings
|
|
EXPOSE 8001
|
|
|
|
CMD ["python", "-m", "mcp_agent.mcp_server"]
|