#35 bugfix: set env CHROME_DEVEL_SANDBOX

This commit is contained in:
voidking 2023-07-13 23:07:15 +08:00
parent bc747d50ce
commit ff212b80e0

View file

@ -40,8 +40,10 @@ RUN useradd -m metagpt -s /bin/bash &&\
cp -r /root/.cache /home/metagpt/ &&\
chown metagpt -R /home/metagpt/.cache &&\
chrome_sandbox=$(find /root/.cache/puppeteer/chrome/ -name "chrome_sandbox") &&\
chmod 4755 $chrome_sandbox &&\
cp $chrome_sandbox /usr/local/sbin/chrome-devel-sandbox
cp $chrome_sandbox /usr/local/sbin/chrome-devel-sandbox &&\
chmod 4755 /usr/local/sbin/chrome-devel-sandbox
ENV CHROME_DEVEL_SANDBOX=/usr/local/sbin/chrome-devel-sandbox
WORKDIR /app/metagpt
USER metagpt