mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2026-05-09 18:27:56 +08:00
1a96d31dbf
* 🔧 调整 Dockerfile 以及 Bison的运行方式 * ⏪ 不再为环境变量配置里的空值使用默认值 * 🔧 为 docker.env.prod 内的配置填写默认值
10 lines
339 B
Plaintext
10 lines
339 B
Plaintext
FROM python:3.11
|
|
RUN python3 -m pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/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
|
|
ADD src /app/src
|
|
ENV HOST=0.0.0.0
|
|
CMD ["nb", "run"]
|