diff --git a/.github/workflows/build-and-push-vector-model.yml b/.github/workflows/build-and-push-vector-model.yml index 6412f7fd7..f83e5192f 100644 --- a/.github/workflows/build-and-push-vector-model.yml +++ b/.github/workflows/build-and-push-vector-model.yml @@ -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: diff --git a/.github/workflows/build-and-push.yml b/.github/workflows/build-and-push.yml index 011c02aa1..2afe5e026 100644 --- a/.github/workflows/build-and-push.yml +++ b/.github/workflows/build-and-push.yml @@ -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 diff --git a/installer/Dockerfile b/installer/Dockerfile index c2bcd1225..1d50b06e5 100644 --- a/installer/Dockerfile +++ b/installer/Dockerfile @@ -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"]