mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-02 14:45:17 +02:00
Add cache removal commands
This commit is contained in:
parent
df8d1124c6
commit
b41d9c25f0
1 changed files with 7 additions and 4 deletions
11
Dockerfile
11
Dockerfile
|
|
@ -2,7 +2,7 @@ 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 pip mirror and apt mirror setup
|
||||
#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 &&\
|
||||
|
|
@ -12,12 +12,15 @@ RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list &&\
|
|||
|
||||
WORKDIR /app
|
||||
|
||||
RUN npm config set registry https://registry.npm.taobao.org &&\
|
||||
npm install -g @mermaid-js/mermaid-cli &&\
|
||||
RUN npm install -g @mermaid-js/mermaid-cli &&\
|
||||
git clone https://github.com/geekan/metagpt
|
||||
RUN cd metagpt &&\
|
||||
mkdir workspace &&\
|
||||
#This sets the pip mirror, you can delete it if you need to.
|
||||
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/ &&\
|
||||
pip install -r requirements.txt &&\
|
||||
pip install -r requirements.txt --no-cache-dir &&\
|
||||
python setup.py install
|
||||
|
||||
RUN pip cache purge &&\
|
||||
apt autoclean
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue