From 33e61d1968e1dd65f3cbc3561ac56377d64698e9 Mon Sep 17 00:00:00 2001 From: Su Yang Date: Thu, 28 Dec 2023 18:58:14 +0800 Subject: [PATCH] feat: support docker (#107) --- .dockerignore | 2 ++ Dockerfile | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 000000000..ea7d5dde4 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +.github +.gitignore diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..6ca5ddf26 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM python:3.10 as Builder +RUN sed -i 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list.d/debian.sources && \ + sed -i 's/security.debian.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list.d/debian.sources +RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple && \ + pip3 install --upgrade pip # enable PEP 660 support +WORKDIR /app +# install libGL.so.1 +RUN apt-get update && apt-get install libgl1 -y +# install BMTools +RUN git clone https://github.com/OpenBMB/BMTools.git --depth=1 +RUN cd BMTools && \ + pip install -r requirements.txt && \ + python setup.py develop +# install AgentVerse +WORKDIR /app/AgentVerse +COPY requirements*.txt ./ +RUN pip install -r requirements.txt +RUN pip install -r requirements_local.txt +COPY . . +RUN pip install -e .