install root in dockerfile

This commit is contained in:
felinae98 2022-02-25 17:28:45 +08:00
parent 33533918ae
commit e5479c0dc6
No known key found for this signature in database
GPG Key ID: 00C8B010587FF610
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ RUN apt-get update && apt-get install -y xvfb fonts-noto-color-emoji ttf-unifont
libxdamage1 libxext6 libxfixes3 libxrandr2 libxshmfence1 \
&& rm -rf /var/lib/apt/lists/*
COPY ./pyproject.toml ./poetry.lock* /app/
RUN poetry install --no-root --no-dev
RUN poetry install --no-dev
RUN playwright install chromium
ADD src /app/src
ADD bot.py /app/

View File

@ -12,7 +12,7 @@ RUN apt-get update && apt-get install -y xvfb fonts-noto-color-emoji ttf-unifont
COPY ./pyproject.toml ./poetry.lock* ./bot.py /app/
RUN poetry add nonebot-plugin-sentry && \
sed '/nonebot.load_builtin_plugins("echo")/a nonebot.load_plugin("nonebot_plugin_sentry")' -i bot.py
RUN poetry install --no-root --no-dev
RUN poetry install --no-dev
RUN playwright install chromium
ADD src /app/src
ENV HOST=0.0.0.0