FROM python:3.10-slim | |
WORKDIR /app | |
# Install system dependencies | |
RUN apt-get update && apt-get install -y \ | |
git \ | |
gcc \ | |
g++ \ | |
&& rm -rf /var/lib/apt/lists/* | |
# Clone repositories | |
RUN git clone https://github.com/mims-harvard/ToolUniverse.git && \ | |
git clone https://github.com/mims-harvard/TxAgent.git | |
# Install Python dependencies | |
COPY requirements.txt . | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Install ToolUniverse and TxAgent from source | |
RUN cd ToolUniverse && pip install --no-cache-dir . && \ | |
cd ../TxAgent && pip install --no-cache-dir . | |
# Copy app files | |
COPY app.py . | |
COPY data/ ./data/ | |
CMD ["python", "app.py"] |