build: 分开镜像

This commit is contained in:
liqiang-fit2cloud 2024-03-15 13:46:31 +08:00
parent 226f4a426b
commit fed53c455e
3 changed files with 16 additions and 2 deletions

View File

@ -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:

View File

@ -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

View File

@ -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"]