swiftlang / swift-docker

Docker Official Image packaging for Swift
https://swift.org
Apache License 2.0
1.37k stars 184 forks source link

Windows Docker images are 5GB+ #425

Open shahmishal opened 1 month ago

shahmishal commented 1 month ago

Investigate: How can we slim down the Windows Docker images to help speed up CI system (e.g. GitHub Actions).

Review the current Dockerfile and understand if it's following best practices for Windows. https://learn.microsoft.com/en-us/virtualization/windowscontainers/manage-docker/optimize-windows-dockerfile

compnerd commented 2 weeks ago

We are currently following best practices outlined on Microsoft's documentation. There are currently 2 sources of size bloat:

  1. we need the full image of Windows to run all the tools
  2. the toolchain size itself is large (~3-3.5G installed image for the toolchain)