fix interlog, add chromium to img, fix #20

This commit is contained in:
felinae98
2021-12-30 00:34:46 +08:00
parent b9ee2232f5
commit 7728615f56
9 changed files with 189 additions and 80 deletions
+3
View File
@@ -1,9 +1,12 @@
FROM python:3.9
RUN python3 -m pip install poetry && poetry config virtualenvs.create false
WORKDIR /app
RUN pip install playwright && playwright install chromium
COPY ./pyproject.toml ./poetry.lock* /app/
RUN poetry install --no-root --no-dev
ADD src /app/src
ADD bot.py /app/
ENV HOST=0.0.0.0
CMD ["python", "bot.py"]
# vim: ft=dockerfile
+3
View File
@@ -1,6 +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
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
@@ -8,3 +9,5 @@ RUN poetry install --no-root --no-dev
ADD src /app/src
ENV HOST=0.0.0.0
CMD ["python", "bot.py"]
# vim: set ft=dockerfile: