Skip to content

Avoid installing SDK on container #591

Open

Description

@Tandis5

With the upgrade to .NET 6, the SDK installation is taking up a lot more space. We are having to add space to our containers, and that is space that really isn't needed. Would it be possible to get a buildpack that only installs the runtime and not the SDK? We always deploy the published app so we don't need the SDK taking up space.

Activity

  1. macsux commented on Jun 14, 2022

    @macsux

    If this issue is tackled, I recommend this be an option rather than the default behavior. There are existing demos that rely on the presence of SDK in a container to work properly.

    I recommend exposing a way to instruct buildpack to compile for self-contained mode. This way only assemblies used by the app will be included further reducing size. This way the container doesn't need to have dotnet dependency at all.

  2. Tandis5 commented on Jun 14, 2022

    @Tandis5
    Author

    Just to be clear... our apps are not being built self-contained. And they aren't being built at all by the buildpack. Our apps are built/published prior to being pushed to PCF. We just need the .NET runtime to run them.

  3. ivanovac commented on Jan 26, 2026

    @ivanovac
    Contributor

    I'm closing this as no activity to this issue recently. If it is still applicable, please reopen.

  4. moved this from ❓ Not scoped to ✅ Done in CF Buildpacks Workstreamson Jan 26, 2026
  5. obligaron commented on Jan 26, 2026

    @obligaron

    This still happens and costs time and resources.
    Note: something similar happens only when installing the .net runtime (this happens multiple times)

    Edit: I can't reopen the issue.

  6. ivanovac commented on Jan 30, 2026

    @ivanovac
    Contributor

    Reopened as @obligaron pointed out that this issue is still relevant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions