Skip to content

Use NuGet to clear local resources in Windows ARM Dockerfile #1496

Closed

Description

The changes made in #1493 used a workaround for the Windows ARM Dockerfile:

&& call rmdir "%TEMP%\NuGetScratch" /S /Q `

It manually deletes the NuGetScratch folder instead of calling into NuGet to clear local resources as the AMD64 Dockerfile:

\dotnet\dotnet nuget locals all --clear; `

Calling the NuGet command was problematic because it was getting a failure attempting to remove the NuGetScratch folder. This particular problem could be resolved by setting USER ContainerAdministrator before the RUN command that installs PowerShell. But when that change is made, it leads to test failures in the VerifyAspNetImage_AppScenario and VerifyRuntimeImage_AppScenario tests because of #1054. There might be a way to resolve the testing issues through some magic combination of Dockerfile commands. It just needs to be experimented with.

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions