fix browser not in image

This commit is contained in:
felinae98
2022-08-03 20:57:56 +08:00
parent 9eac2ffff8
commit 07ab1b6fb3
2 changed files with 2 additions and 4 deletions
+1 -2
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
+1 -2
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"]