update code

This commit is contained in:
Ewan Xiao 2023-07-18 23:35:38 +12:00
parent 62160e454c
commit 0f5098f43a
No known key found for this signature in database
GPG key ID: D0F07A48EFE13899
2 changed files with 20 additions and 20 deletions

View file

@ -12,7 +12,7 @@ RUN apt update &&\
# Set the working directory to /app
WORKDIR /app
# Install Mermaid CLI globally
# Install Mermaid CLI globally
ENV CHROME_BIN="/usr/bin/chromium"
ENV AM_I_IN_A_DOCKER_CONTAINER Yes
ADD puppeteer-config.json /puppeteer-config.json
@ -29,12 +29,7 @@ RUN cd metagpt &&\
pip cache purge &&\
python setup.py install
# Add metagpt user so we don't need --no-sandbox when use puppeteer
RUN useradd -m metagpt -s /bin/bash &&\
chown metagpt -R /app/metagpt
WORKDIR /app/metagpt
USER metagpt
# Running with an infinite loop using the tail command
CMD ["sh", "-c", "tail -f /dev/null"]
CMD ["sh", "-c", "tail -f /dev/null"]