Spaces:
Running
Running
File size: 1,231 Bytes
9d25df1 7eb1167 9d25df1 7eb1167 9d25df1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | FROM python:3.11
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
WORKDIR /app
# Copy application files
COPY --chown=user . /app
ENV PYTHONPATH=/app/Foam-Agent/source:$PYTHONPATH
# Install dependencies using pip
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir \
fastapi \
uvicorn[standard] \
fastmcp \
pydantic \
python-dotenv \
faiss-cpu \
pyyaml \
requests \
numpy \
langchain \
langchain-core \
langchain-openai \
langchain-community \
langchain-aws \
langchain-anthropic \
langchain-ollama \
langchain-text-splitters \
langchain-experimental \
langgraph \
langgraph-checkpoint \
langgraph-sdk \
langserve \
langsmith \
openai \
anthropic \
boto3 \
botocore \
httpx \
httpcore \
aiohttp \
aiohappyeyeballs \
aiosignal \
pandas \
scikit-learn \
matplotlib \
seaborn \
click \
tqdm \
tenacity \
tiktoken \
orjson \
msgpack \
zstandard \
sqlalchemy \
marshmallow \
gitingest
EXPOSE 7860
ENV MCP_TRANSPORT=http
ENV MCP_PORT=7860
CMD ["python", "Foam-Agent/mcp_output/start_mcp.py"]
|