Sign inSign up

premsai26/servercore

By premsai26

•Updated almost 7 years ago

Image
0

26

premsai26/servercore repository overview

FROM mcr.microsoft.com/windows/servercore:ltsc2016 
SHELL ["powershell.exe", "-ExecutionPolicy", "Bypass", "-Command"]

RUN iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
RUN choco install -y git --params='/NoShellIntegration'
RUN choco install -y nuget.commandline

ENV JAVA_HOME c:\\jre1.8.0_91
ENV JENKINS_HOME c:\\jenkins

#RUN (new-object System.Net.WebClient).Downloadfile('http://javadl.oracle.com/webapps/download/AutoDL?BundleId=210185', 'C:\jre-8u91-windows-x64.exe')

COPY jre-8u91-windows-x64.exe jre-8u91-windows-x64.exe

RUN start-process -filepath C:\\jre-8u91-windows-x64.exe -passthru -wait -argumentlist "/s,INSTALLDIR=$env:JAVA_HOME,/L,install64.log"
RUN del C:\jre-8u91-windows-x64.exe

RUN $env:PATH = $env:JAVA_HOME + '\\bin;' + $env:PATH; \
	[Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine);

RUN mkdir $env:JENKINS_HOME
WORKDIR $JENKINS_HOME

ENTRYPOINT ["cmd.exe"]

Tag summary

Content type

Image

Digest

Size

5.3 GB

Last updated

almost 7 years ago

docker pull premsai26/servercore:ltsc2016