mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-09-03 22:52:25 +08:00
update dockerfile
This commit is contained in:
parent
7728615f56
commit
4aeff4ad95
@ -1,7 +1,7 @@
|
|||||||
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
|
RUN pip install playwright && playwright install chromium && playwright install-deps
|
||||||
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,7 @@
|
|||||||
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
|
RUN pip install playwright && playwright install chromium && playwright install-deps
|
||||||
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