forked from FoundationAgents/MetaGPT
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (22 loc) · 952 Bytes
/
Dockerfile
File metadata and controls
28 lines (22 loc) · 952 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM python:3.9.17-slim-bullseye
#Special gifts for mainland China users :)
#Change to your own preferenced mirrors if you wish, just uncomment them is fine too.
#Below is apt mirror setup.
RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list &&\
apt update &&\
apt install -y git curl wget build-essential gcc clang g++ make &&\
curl -sL https://deb.nodesource.com/setup_19.x | bash - &&\
apt install -y nodejs
WORKDIR /app
#This sets npm mirror url.
RUN npm config set registry https://registry.npm.taobao.org &&\
npm install -g @mermaid-js/mermaid-cli &&\
git clone https://github.com/geekan/metagpt
RUN cd metagpt &&\
mkdir workspace &&\
#This sets the pip mirror url.
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/ &&\
pip install -r requirements.txt --no-cache-dir &&\
python setup.py install
RUN pip cache purge &&\
apt autoclean