update sentry build

This commit is contained in:
felinae98 2022-02-24 15:47:20 +08:00
parent 1aeaad44ee
commit 319ffc8a45
No known key found for this signature in database
GPG Key ID: 00C8B010587FF610

View File

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