Merge pull request #47 from voidking/pr

#35 bugfix: set env CHROME_DEVEL_SANDBOX
This commit is contained in:
geekan 2023-07-14 01:20:49 +08:00 committed by GitHub
commit d1c004d37e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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