Spaces:
Runtime error
Runtime error
shenchucheng
commited on
Commit
·
793bad4
1
Parent(s):
68123c6
update Dockerfile source
Browse files- Dockerfile +3 -4
Dockerfile
CHANGED
|
@@ -4,8 +4,7 @@ FROM nikolaik/python-nodejs:python3.9-nodejs20-slim
|
|
| 4 |
USER root
|
| 5 |
|
| 6 |
# Install Debian software needed by MetaGPT and clean up in one RUN command to reduce image size
|
| 7 |
-
RUN
|
| 8 |
-
apt update &&\
|
| 9 |
apt install -y git chromium fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 --no-install-recommends &&\
|
| 10 |
apt clean && rm -rf /var/lib/apt/lists/*
|
| 11 |
|
|
@@ -14,13 +13,13 @@ ENV CHROME_BIN="/usr/bin/chromium" \
|
|
| 14 |
PUPPETEER_CONFIG="/app/metagpt/config/puppeteer-config.json"\
|
| 15 |
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true"
|
| 16 |
|
| 17 |
-
RUN npm install -g @mermaid-js/mermaid-cli
|
| 18 |
npm cache clean --force
|
| 19 |
|
| 20 |
# Install Python dependencies and install MetaGPT
|
| 21 |
COPY requirements.txt requirements.txt
|
| 22 |
|
| 23 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 24 |
|
| 25 |
WORKDIR /app
|
| 26 |
|
|
|
|
| 4 |
USER root
|
| 5 |
|
| 6 |
# Install Debian software needed by MetaGPT and clean up in one RUN command to reduce image size
|
| 7 |
+
RUN apt update &&\
|
|
|
|
| 8 |
apt install -y git chromium fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 --no-install-recommends &&\
|
| 9 |
apt clean && rm -rf /var/lib/apt/lists/*
|
| 10 |
|
|
|
|
| 13 |
PUPPETEER_CONFIG="/app/metagpt/config/puppeteer-config.json"\
|
| 14 |
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true"
|
| 15 |
|
| 16 |
+
RUN npm install -g @mermaid-js/mermaid-cli &&\
|
| 17 |
npm cache clean --force
|
| 18 |
|
| 19 |
# Install Python dependencies and install MetaGPT
|
| 20 |
COPY requirements.txt requirements.txt
|
| 21 |
|
| 22 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 23 |
|
| 24 |
WORKDIR /app
|
| 25 |
|