update docker files

This commit is contained in:
felinae98 2021-11-25 14:39:56 +08:00
parent dd996ce691
commit 4c9de7dc73
No known key found for this signature in database
GPG Key ID: 00C8B010587FF610
2 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ WORKDIR /app
COPY ./pyproject.toml ./poetry.lock* /app/
RUN poetry install --no-root --no-dev
# RUN PYPPETEER_DOWNLOAD_HOST='http://npm.taobao.org/mirrors' pyppeteer-install
ENV HK_REPORTER_BROWSER=local:/usr/bin/chromium
ENV BISON_BROWSER=local:/usr/bin/chromium
ADD src /app/src
ADD bot.py /app/
ENV HOST=0.0.0.0

View File

@ -8,15 +8,15 @@ services:
browserless:
image: browserless/chrome
nonebot:
image: felinae98/nonebot-hk-reporter
image: felinae98/nonebot-bison
volumes:
- ./nonebot-data:/data
environment:
TZ: Asia/Shanghai
HOST: 0.0.0.0
# SUPERUSERS: '[<your QQ>]'
HK_REPORTER_CONFIG_PATH: /data
HK_REPORTER_BROWSER: ws://browserless:3000
BISON_CONFIG_PATH: /data
BISON_BROWSER: ws://browserless:3000
depends_on:
- browserless
- go-cqhttp