Skip to content

Commit baab2b7

Browse files
committed
remove jlink from wsc, to be added in another PR
1 parent 6c74295 commit baab2b7

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

windows/windowsservercore/Dockerfile

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -41,27 +41,13 @@ RUN New-Item -ItemType Directory -Path C:\temp | Out-Null ; `
4141
RUN Write-Host 'javac --version' ; javac --version ; `
4242
Write-Host 'java --version' ; java --version
4343

44-
RUN $version = (jlink --version) ; `
45-
$stripJavaDebugFlags = '--strip-java-debug-attributes' ; `
46-
# jlink version 11 has less features than JDK17+
47-
if ($version.StartsWith('11')) { `
48-
$stripJavaDebugFlags = '--strip-debug' ; `
49-
} `
50-
& jlink `
51-
--add-modules ALL-MODULE-PATH `
52-
$stripJavaDebugFlags `
53-
--no-man-pages `
54-
--no-header-files `
55-
--compress=2 `
56-
--output /javaruntime
57-
5844
## Agent image target
5945
FROM mcr.microsoft.com/windows/servercore:"${WINDOWS_VERSION_TAG}" AS agent
6046

6147
ARG JAVA_HOME="C:\openjdk-17"
6248
ENV JAVA_HOME=${JAVA_HOME}
6349

64-
COPY --from=jdk-core /javaruntime $JAVA_HOME
50+
COPY --from=jdk-core $JAVA_HOME $JAVA_HOME
6551

6652
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
6753

0 commit comments

Comments
 (0)