mirror of https://github.com/Mai-with-u/MaiBot.git
feat: 更新 Dockerfile,添加 git 安装步骤以支持插件安装
parent
a921c7c074
commit
979686d707
|
|
@ -1,11 +1,12 @@
|
||||||
name: Docker Build and Push
|
name: Docker Build and Push
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 0 * * *'
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- classical
|
- classical
|
||||||
- dev
|
|
||||||
tags:
|
tags:
|
||||||
- "v*.*.*"
|
- "v*.*.*"
|
||||||
- "v*"
|
- "v*"
|
||||||
|
|
@ -24,6 +25,7 @@ jobs:
|
||||||
- name: Check out git repository
|
- name: Check out git repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
ref: ${{ github.event_name == 'schedule' && 'dev' || github.ref }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
# Clone required dependencies
|
# Clone required dependencies
|
||||||
|
|
@ -77,6 +79,7 @@ jobs:
|
||||||
- name: Check out git repository
|
- name: Check out git repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
ref: ${{ github.event_name == 'schedule' && 'dev' || github.ref }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
# Clone required dependencies
|
# Clone required dependencies
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,8 @@ WORKDIR /MaiMBot
|
||||||
# 复制依赖列表
|
# 复制依赖列表
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y git
|
||||||
|
|
||||||
# 从编译阶段复制 LPMM 编译结果
|
# 从编译阶段复制 LPMM 编译结果
|
||||||
COPY --from=lpmm-builder /usr/local/lib/python3.13/site-packages/ /usr/local/lib/python3.13/site-packages/
|
COPY --from=lpmm-builder /usr/local/lib/python3.13/site-packages/ /usr/local/lib/python3.13/site-packages/
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue