We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d79b70 commit 9b3018bCopy full SHA for 9b3018b
windows/nanoserver/Dockerfile
@@ -62,6 +62,7 @@ ENV PSHOME="C:\Program Files\PowerShell"
62
COPY --from=jdk-core /windows/system32/whoami.exe /windows/system32/whoami.exe
63
COPY --from=jdk-core $JAVA_HOME $JAVA_HOME
64
COPY --from=jdk-core /windows/system32/netapi32.dll $PSHOME/netapi32.dll
65
+# While nanoserver-ltsc2025 includes netapi32.dll, older versions don't
66
RUN If (!(Test-Path 'C:/windows/system32/netapi32.dll') -And (Test-Path "$env:PSHOME/netapi32.dll")) { Move-Item "$env:PSHOME/netapi32.dll" 'C:/windows/system32/netapi32.dll' } Else { Write-Host "No $env:PSHOME/netapi32.dll or windows/system32/netapi32.dll alreay exists" }
67
68
# Backward compatibility with version <= 5.x: create a symlink to the "new" JAVA_HOME
0 commit comments