Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jul 30, 2025

The _image_sources directory contains 119MB of source design files (SVGs, PNGs, XCF files) that are not needed during Docker builds. This directory was causing unnecessary data transfer during Docker context creation.

Changes Made

Added _image_sources to .dockerignore to exclude it from Docker build context.

Impact

  • Docker context size reduction: 549.09MB → 197.41kB (99.96% reduction)
  • Significantly faster Docker builds due to reduced context transfer time
  • No functional impact on the application

Verification

  • ✅ Site builds successfully with npm run dist and npm run 11ty
  • ✅ Site serves correctly with npm run serve
  • ✅ Directory already excluded from Eleventy builds via .eleventyignore
  • ✅ No direct code references found (only used in GitHub workflow triggers)
  • ✅ Contains source materials not required for runtime builds

The _image_sources directory appears to contain design source files used for creating final assets, similar to how source code gets compiled into production builds. These files don't need to be present in the Docker container during builds or runtime.

Fixes #223.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Co-authored-by: dannystaple <426859+dannystaple@users.noreply.github.com>
Copilot AI changed the title [WIP] Can the _image_sources directory be excluded in dockerignore Exclude _image_sources directory from Docker context to reduce build transfer size Jul 30, 2025
Copilot AI requested a review from dannystaple July 30, 2025 18:05
Copilot finished work on behalf of dannystaple July 30, 2025 18:05
@dannystaple dannystaple marked this pull request as ready for review July 30, 2025 19:03
@dannystaple dannystaple merged commit 4d433aa into master Jul 30, 2025
@dannystaple dannystaple deleted the copilot/fix-223 branch July 30, 2025 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can the _image_sources directory be excluded in dockerignore

2 participants