add cahce removal commands

This commit is contained in:
sablin39 2023-07-09 18:06:36 +08:00
parent ca97b7998e
commit 6e6bc93853

View file

@ -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 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 &&\
@ -11,12 +11,13 @@ RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list &&\
WORKDIR /app
RUN npm install -g @mermaid-js/mermaid-cli &&\
#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, you can delete it if you need to.
#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
@ -24,3 +25,4 @@ RUN cd metagpt &&\
RUN pip cache purge &&\
apt autoclean