sihyeonn opened a new pull request, #610:
URL: https://github.com/apache/apisix-docker/pull/610

   # Summary
   - Optimize debian-dev/Dockerfile and debian-dev/Dockerfile.local for better 
Docker layer caching
   - Build brotli directly in build stage instead of using external shell script
   - Copy only dependency-related files before full source code to improve 
cache hits on code changes
   
   # Changes
   ## Layer Caching Optimization
   - Dockerfile.local: Separate COPY steps - first copy Makefile, rockspec, 
.requirements, then run make deps, finally copy remaining source code
   - This ensures make deps layer is cached when only application code changes
   
   ## Brotli Build Improvement
   - Move brotli compilation into Dockerfile as separate RUN layer (cached 
independently)
   - Remove dependency on install-brotli.sh external script
   - Copy pre-built brotli from build stage instead of rebuilding in production 
stage
   
   ## Cleanup
   - Remove duplicate apt-get install libldap2-dev in production stage
   - Delete debian-dev/install-brotli.sh (no longer needed)
   - Fix ENV syntax (DEBIAN_FRONTEND=noninteractive instead of DEBIAN_FRONTEND 
noninteractive)
   
   ## Benefits
   - Faster rebuilds: Code-only changes no longer trigger full dependency 
reinstallation
   - Smaller final image: Brotli build tools not installed in production stage
   - Simpler maintenance: No external shell script dependency


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to