mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-02 09:26:12 +08:00
11 lines
437 B
Plaintext
11 lines
437 B
Plaintext
FROM python:3.11
|
|
RUN apt-get update && apt-get install -y fonts-wqy-microhei chromium nano
|
|
RUN python3 -m pip config set global.index-url https://mirrors.aliyun.com/pypi/simple
|
|
RUN python3 -m pip install poetry && poetry config virtualenvs.create false
|
|
WORKDIR /app
|
|
COPY ./README.md ./pyproject.toml ./poetry.lock* /app/
|
|
RUN poetry install --only=main,docker
|
|
ENV BISON_BROWSER=local:/usr/bin/chromium
|
|
ADD src /app/src
|
|
ENV HOST=0.0.0.0
|