Create Dockerfile
Browse files- Dockerfile +28 -0
Dockerfile
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.10-slim
|
2 |
+
|
3 |
+
WORKDIR /app
|
4 |
+
|
5 |
+
# Install system dependencies
|
6 |
+
RUN apt-get update && apt-get install -y \
|
7 |
+
git \
|
8 |
+
gcc \
|
9 |
+
g++ \
|
10 |
+
&& rm -rf /var/lib/apt/lists/*
|
11 |
+
|
12 |
+
# Clone repositories
|
13 |
+
RUN git clone https://github.com/mims-harvard/ToolUniverse.git && \
|
14 |
+
git clone https://github.com/mims-harvard/TxAgent.git
|
15 |
+
|
16 |
+
# Install Python dependencies
|
17 |
+
COPY requirements.txt .
|
18 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
19 |
+
|
20 |
+
# Install ToolUniverse and TxAgent from source
|
21 |
+
RUN cd ToolUniverse && pip install --no-cache-dir . && \
|
22 |
+
cd ../TxAgent && pip install --no-cache-dir .
|
23 |
+
|
24 |
+
# Copy app files
|
25 |
+
COPY app.py .
|
26 |
+
COPY data/ ./data/
|
27 |
+
|
28 |
+
CMD ["python", "app.py"]
|