Spaces:
Sleeping
Sleeping
File size: 1,691 Bytes
c2649ec |
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 |
FROM python:3.11-slim AS base
RUN mkdir -p /app/aworld
WORKDIR /app/aworld
RUN pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
RUN rm -fv /etc/apt/sources.list.d/* && \
echo "deb [trusted=yes] https://mirrors.aliyun.com/debian bookworm main contrib non-free non-free-firmware" > /etc/apt/sources.list && \
echo "deb [trusted=yes] https://mirrors.aliyun.com/debian bookworm-updates main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \
echo "deb [trusted=yes] https://mirrors.aliyun.com/debian bookworm-backports main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \
echo "deb [trusted=yes] https://mirrors.aliyun.com/debian-security bookworm-security main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y wget unzip openssh-client procps nodejs npm
# Config Env
RUN npx playwright install chrome
RUN npm install @playwright/mcp @negokaz/excel-mcp-server
# GAIA Docker Image
FROM base AS gaia_env
# Install aworld
COPY ./aworld aworld
COPY ./setup.py setup.py
RUN python setup.py install
# Install mcp servers requirements
COPY ./mcp_servers mcp_servers
RUN pip install -r mcp_servers/requirements.txt
# Copy examples
COPY ./examples/ examples
# Create GAIA benchmark directory
RUN mkdir -p gaia-benchmark/fs && \
mkdir -p gaia-benchmark/logs && \
mkdir -p static
ENV PYTHONPATH=/app/aworld${PYTHONPATH:+:${PYTHONPATH}}
ENV GAIA_DATASET_PATH=/app/aworld/examples/gaia/GAIA/2023
ENV LOG_FILE_PATH=/app/aworld/gaia-benchmark/logs
CMD [ "python", "examples/gaia/gaia_agent_server.py" ]
|