update dockerfile

This commit is contained in:
felinae98 2021-12-30 00:51:32 +08:00
parent 7728615f56
commit 4aeff4ad95
No known key found for this signature in database
GPG Key ID: 00C8B010587FF610
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
FROM python:3.9
RUN python3 -m pip install poetry && poetry config virtualenvs.create false
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/
RUN poetry install --no-root --no-dev
ADD src /app/src

View File

@ -1,7 +1,7 @@
FROM python:3.9
RUN python3 -m pip install poetry && poetry config virtualenvs.create false
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/
RUN poetry add nonebot-plugin-sentry && \
sed '/nonebot.load_builtin_plugins()/a nonebot.load_plugin("nonebot_plugin_sentry")' -i bot.py