refactor: optimize Docker build with multi-stage and slim runtime base image

This commit is contained in:
fawney19
2025-12-19 15:51:21 +08:00
parent af476ff21e
commit c2ddc6bd3c
4 changed files with 146 additions and 225 deletions

View File

@@ -148,7 +148,7 @@ jobs:
- name: Update Dockerfile.app to use registry base image
run: |
sed -i "s|FROM aether-base:latest|FROM ${{ env.REGISTRY }}/${{ env.BASE_IMAGE_NAME }}:latest|g" Dockerfile.app
sed -i "s|FROM aether-base:latest AS builder|FROM ${{ env.REGISTRY }}/${{ env.BASE_IMAGE_NAME }}:latest AS builder|g" Dockerfile.app
- name: Build and push app image
uses: docker/build-push-action@v5