mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-09-02 22:12:25 +08:00
Merge branch 'dev' of github.com:felinae98/nonebot-bison into dev
This commit is contained in:
commit
a7ccb977d3
@ -1,7 +1,15 @@
|
|||||||
FROM python:3.9
|
FROM python:3.9
|
||||||
RUN python3 -m pip install poetry && poetry config virtualenvs.create false
|
RUN python3 -m pip install poetry && poetry config virtualenvs.create false
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN pip install playwright && playwright install chromium && playwright install-deps
|
RUN apt-get update && apt-get install -y xvfb fonts-noto-color-emoji ttf-unifont \
|
||||||
|
libfontconfig1 libfreetype6 xfonts-cyrillic xfonts-scalable fonts-liberation \
|
||||||
|
fonts-ipafont-gothic fonts-wqy-zenhei fonts-tlwg-loma-otf \
|
||||||
|
fonts-liberation libasound2 libatk-bridge2.0-0 libatk1.0-0 libatspi2.0-0 \
|
||||||
|
libcairo2 libcups2 libdbus-1-3 libdrm2 libegl1 libgbm1 libglib2.0-0 libgtk-3-0 \
|
||||||
|
libnspr4 libnss3 libpango-1.0-0 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 \
|
||||||
|
libxdamage1 libxext6 libxfixes3 libxrandr2 libxshmfence1 \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
RUN pip install playwright && playwright install chromium
|
||||||
COPY ./pyproject.toml ./poetry.lock* /app/
|
COPY ./pyproject.toml ./poetry.lock* /app/
|
||||||
RUN poetry install --no-root --no-dev
|
RUN poetry install --no-root --no-dev
|
||||||
ADD src /app/src
|
ADD src /app/src
|
||||||
|
@ -1,7 +1,15 @@
|
|||||||
FROM python:3.9
|
FROM python:3.9
|
||||||
RUN python3 -m pip install poetry && poetry config virtualenvs.create false
|
RUN python3 -m pip install poetry && poetry config virtualenvs.create false
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN pip install playwright && playwright install chromium && playwright install-deps
|
RUN apt-get update && apt-get install -y xvfb fonts-noto-color-emoji ttf-unifont \
|
||||||
|
libfontconfig1 libfreetype6 xfonts-cyrillic xfonts-scalable fonts-liberation \
|
||||||
|
fonts-ipafont-gothic fonts-wqy-zenhei fonts-tlwg-loma-otf \
|
||||||
|
fonts-liberation libasound2 libatk-bridge2.0-0 libatk1.0-0 libatspi2.0-0 \
|
||||||
|
libcairo2 libcups2 libdbus-1-3 libdrm2 libegl1 libgbm1 libglib2.0-0 libgtk-3-0 \
|
||||||
|
libnspr4 libnss3 libpango-1.0-0 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 \
|
||||||
|
libxdamage1 libxext6 libxfixes3 libxrandr2 libxshmfence1 \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
RUN pip install playwright && playwright install chromium
|
||||||
COPY ./pyproject.toml ./poetry.lock* ./bot.py /app/
|
COPY ./pyproject.toml ./poetry.lock* ./bot.py /app/
|
||||||
RUN poetry add nonebot-plugin-sentry && \
|
RUN poetry add nonebot-plugin-sentry && \
|
||||||
sed '/nonebot.load_builtin_plugins()/a nonebot.load_plugin("nonebot_plugin_sentry")' -i bot.py
|
sed '/nonebot.load_builtin_plugins()/a nonebot.load_plugin("nonebot_plugin_sentry")' -i bot.py
|
||||||
|
Loading…
x
Reference in New Issue
Block a user