fix docker build error

This commit is contained in:
felinae98 2022-03-07 13:24:11 +08:00
parent d231ed123c
commit 1e48bc3c2a
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-dev
RUN poetry install --no-dev --no-root
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-dev
RUN poetry install --no-dev --no-root
RUN playwright install chromium
ADD src /app/src
ENV HOST=0.0.0.0