Created
June 23, 2016 08:49
-
-
Save alexandrnikitin/e260c8792f1edff4626f8facff40bec1 to your computer and use it in GitHub Desktop.
Dockerfile for https://alexandrnikitin.github.io/blog/running-java-inside-windows-container-on-windows-server/#comment-2744653324
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM windowsservercore | |
ADD http://javadl.oracle.com/webapps/download/AutoDL?BundleId=210185 C:\jre-8u91-windows-x64.exe | |
RUN powershell start-process -filepath C:\jre-8u91-windows-x64.exe -passthru -wait -argumentlist "/s,INSTALLDIR=c:\Java\jre1.8.0_91,/L,install64.log" | |
RUN del C:\jre-8u91-windows-x64.exe | |
CMD [ "c:\\Java\\jre1.8.0_91\\bin\\java.exe", "-version"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment