fix browser not in image

This commit is contained in:
felinae98 2022-08-03 20:57:56 +08:00
parent 9eac2ffff8
commit 07ab1b6fb3
No known key found for this signature in database
GPG Key ID: 00C8B010587FF610
2 changed files with 2 additions and 4 deletions

View File

@ -15,8 +15,7 @@ RUN --mount=type=cache,target=/var/cache/apt \
COPY ./pyproject.toml ./poetry.lock* /app/
RUN --mount=type=cache,target=/root/.cache/pypoetry \
poetry install --no-dev --no-root
RUN --mount=type=cache,target=/root/.cache/ms-playwright \
playwright install chromium
RUN playwright install chromium
ADD src /app/src
ADD bot.py /app/
ENV HOST=0.0.0.0

View File

@ -18,8 +18,7 @@ RUN --mount=type=cache,target=/root/.cache/pypoetry \
sed '/nonebot.load_builtin_plugins("echo")/a nonebot.load_plugin("nonebot_plugin_sentry")' -i bot.py
RUN --mount=type=cache,target=/root/.cache/pypoetry \
poetry install --no-dev --no-root
RUN --mount=type=cache,target=/root/.cache/ms-playwright \
playwright install chromium
RUN playwright install chromium
ADD src /app/src
ENV HOST=0.0.0.0
CMD ["python", "bot.py"]