| FROM python:3.10-slim |
|
|
| |
| WORKDIR /app |
|
|
| |
| RUN apt-get update && apt-get install -y \ |
| git \ |
| gcc \ |
| g++ \ |
| curl \ |
| build-essential \ |
| libglib2.0-0 \ |
| libsm6 \ |
| libxext6 \ |
| libxrender-dev \ |
| && rm -rf /var/lib/apt/lists/* |
|
|
| |
| RUN pip install --no-cache-dir --upgrade pip |
|
|
| |
| RUN git clone https://github.com/mims-harvard/ToolUniverse.git && \ |
| git clone https://github.com/mims-harvard/TxAgent.git |
|
|
| |
| COPY requirements.txt . |
| RUN pip install --no-cache-dir -r requirements.txt |
|
|
| |
| RUN pip install --no-cache-dir ./ToolUniverse && \ |
| pip install --no-cache-dir ./TxAgent |
|
|
| |
| COPY app.py . |
| COPY data/ ./data/ |
|
|
| |
| RUN mkdir -p /app/models && chmod -R 777 /app/data /app/models |
|
|
| |
| EXPOSE 7860 |
|
|
| |
| CMD ["python", "app.py"] |
|
|