mirror of https://github.com/Mai-with-u/MaiBot.git
commit
955d2672ea
|
|
@ -0,0 +1,6 @@
|
||||||
|
.git
|
||||||
|
__pycache__
|
||||||
|
*.pyc
|
||||||
|
*.pyo
|
||||||
|
*.pyd
|
||||||
|
.DS_Store
|
||||||
16
Dockerfile
16
Dockerfile
|
|
@ -1,8 +1,18 @@
|
||||||
FROM nonebot/nb-cli:latest
|
FROM nonebot/nb-cli:latest
|
||||||
WORKDIR /
|
|
||||||
COPY . /MaiMBot/
|
# 设置工作目录
|
||||||
WORKDIR /MaiMBot
|
WORKDIR /MaiMBot
|
||||||
|
|
||||||
|
# 先复制依赖列表
|
||||||
|
COPY requirements.txt .
|
||||||
|
|
||||||
|
# 安装依赖(这层会被缓存直到requirements.txt改变)
|
||||||
RUN pip install --upgrade -r requirements.txt
|
RUN pip install --upgrade -r requirements.txt
|
||||||
|
|
||||||
|
# 然后复制项目代码
|
||||||
|
COPY . .
|
||||||
|
|
||||||
VOLUME [ "/MaiMBot/config" ]
|
VOLUME [ "/MaiMBot/config" ]
|
||||||
|
VOLUME [ "/MaiMBot/data" ]
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
ENTRYPOINT [ "nb","run" ]
|
ENTRYPOINT [ "nb","run" ]
|
||||||
Loading…
Reference in New Issue