mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-06 20:06:12 +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/
|
COPY ./pyproject.toml ./poetry.lock* /app/
|
||||||
RUN --mount=type=cache,target=/root/.cache/pypoetry \
|
RUN --mount=type=cache,target=/root/.cache/pypoetry \
|
||||||
poetry install --no-dev --no-root
|
poetry install --no-dev --no-root
|
||||||
RUN --mount=type=cache,target=/root/.cache/ms-playwright \
|
RUN playwright install chromium
|
||||||
playwright install chromium
|
|
||||||
ADD src /app/src
|
ADD src /app/src
|
||||||
ADD bot.py /app/
|
ADD bot.py /app/
|
||||||
ENV HOST=0.0.0.0
|
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
|
sed '/nonebot.load_builtin_plugins("echo")/a nonebot.load_plugin("nonebot_plugin_sentry")' -i bot.py
|
||||||
RUN --mount=type=cache,target=/root/.cache/pypoetry \
|
RUN --mount=type=cache,target=/root/.cache/pypoetry \
|
||||||
poetry install --no-dev --no-root
|
poetry install --no-dev --no-root
|
||||||
RUN --mount=type=cache,target=/root/.cache/ms-playwright \
|
RUN playwright install chromium
|
||||||
playwright install chromium
|
|
||||||
ADD src /app/src
|
ADD src /app/src
|
||||||
ENV HOST=0.0.0.0
|
ENV HOST=0.0.0.0
|
||||||
CMD ["python", "bot.py"]
|
CMD ["python", "bot.py"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user