File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed
windows/windowsservercore Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -41,27 +41,13 @@ RUN New-Item -ItemType Directory -Path C:\temp | Out-Null ; `
41
41
RUN Write-Host 'javac --version' ; javac --version ; `
42
42
Write-Host 'java --version' ; java --version
43
43
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
-
58
44
# # Agent image target
59
45
FROM mcr.microsoft.com/windows/servercore:"${WINDOWS_VERSION_TAG}" AS agent
60
46
61
47
ARG JAVA_HOME="C:\o penjdk-17"
62
48
ENV JAVA_HOME=${JAVA_HOME}
63
49
64
- COPY --from=jdk-core /javaruntime $JAVA_HOME
50
+ COPY --from=jdk-core $JAVA_HOME $JAVA_HOME
65
51
66
52
SHELL ["powershell" , "-Command" , "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';" ]
67
53
You can’t perform that action at this time.
0 commit comments