mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-05 11:26:43 +08:00
fix browser not in image
This commit is contained in:
parent
9eac2ffff8
commit
07ab1b6fb3
@ -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
|
||||
|
@ -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"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user