Skip to content

Commit

Permalink
Merge pull request geekan#47 from voidking/pr
Browse files Browse the repository at this point in the history
geekan#35 bugfix: set env CHROME_DEVEL_SANDBOX
  • Loading branch information
geekan authored Jul 13, 2023
2 parents bc747d5 + ff212b8 commit d1c004d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d1c004d

Please sign in to comment.