|
|
|
FROM nikolaik/python-nodejs:python3.9-nodejs20-slim |
|
|
|
USER root |
|
|
|
|
|
RUN apt update &&\ |
|
apt install -y git chromium fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 --no-install-recommends &&\ |
|
apt clean && rm -rf /var/lib/apt/lists/* |
|
|
|
|
|
ENV CHROME_BIN="/usr/bin/chromium" \ |
|
PUPPETEER_CONFIG="/app/metagpt/config/puppeteer-config.json"\ |
|
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true" |
|
RUN npm install -g @mermaid-js/mermaid-cli &&\ |
|
npm cache clean --force |
|
|
|
|
|
COPY requirements.txt requirements.txt |
|
|
|
RUN pip install --no-cache-dir -r requirements.txt |
|
|
|
COPY . /app/metagpt |
|
WORKDIR /app/metagpt |
|
RUN chmod -R 777 /app/metagpt/logs/ &&\ |
|
mkdir workspace &&\ |
|
chmod -R 777 /app/metagpt/workspace/ &&\ |
|
python -m pip install -e. |
|
|
|
|
|
CMD ["python", "metagpt/web/app.py"] |
|
|