Skip to content

Commit 33e61d1

Browse files
authored
feat: support docker (#107)
1 parent 1c92dbe commit 33e61d1

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.dockerignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.github
2+
.gitignore

Dockerfile

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FROM python:3.10 as Builder
2+
RUN sed -i 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list.d/debian.sources && \
3+
sed -i 's/security.debian.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list.d/debian.sources
4+
RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple && \
5+
pip3 install --upgrade pip # enable PEP 660 support
6+
WORKDIR /app
7+
# install libGL.so.1
8+
RUN apt-get update && apt-get install libgl1 -y
9+
# install BMTools
10+
RUN git clone https://github.com/OpenBMB/BMTools.git --depth=1
11+
RUN cd BMTools && \
12+
pip install -r requirements.txt && \
13+
python setup.py develop
14+
# install AgentVerse
15+
WORKDIR /app/AgentVerse
16+
COPY requirements*.txt ./
17+
RUN pip install -r requirements.txt
18+
RUN pip install -r requirements_local.txt
19+
COPY . .
20+
RUN pip install -e .

0 commit comments

Comments
 (0)