mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
build: 分开镜像
This commit is contained in:
parent
226f4a426b
commit
fed53c455e
|
|
@ -7,6 +7,20 @@ jobs:
|
|||
build-and-push-vector-model-to-ghcr:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check Disk Space
|
||||
run: df -h
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
tool-cache: true
|
||||
android: true
|
||||
dotnet: true
|
||||
haskell: true
|
||||
large-packages: true
|
||||
docker-images: true
|
||||
swap-storage: true
|
||||
- name: Check Disk Space
|
||||
run: df -h
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ jobs:
|
|||
password: ${{ secrets.FIT2CLOUD_REGISTRY_PASSWORD }}
|
||||
- name: Docker Buildx (build-and-push)
|
||||
run: |
|
||||
docker buildx build --output "type=image,push=true" ${{ steps.prepare.outputs.buildx_args }}
|
||||
docker buildx build --output "type=image,push=true" ${{ steps.prepare.outputs.buildx_args }} -f installer/Dockerfile
|
||||
|
||||
build-and-push-to-ghcr:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
|||
|
|
@ -34,8 +34,8 @@ RUN pip3 install poetry
|
|||
RUN poetry export -f requirements.txt --output requirements.txt --without-hashes
|
||||
# 下载python依赖
|
||||
RUN pip3 install --no-cache-dir -r requirements.txt
|
||||
EXPOSE 8000
|
||||
# 启动命令
|
||||
EXPOSE 8000
|
||||
COPY installer/run-maxkb.sh /usr/bin/
|
||||
RUN chmod 755 /usr/bin/run-maxkb.sh
|
||||
ENTRYPOINT ["bash", "-c"]
|
||||
|
|
|
|||
Loading…
Reference in New Issue