FROM microsoft/windowsservercore MAINTAINER Kevin Reeuwijk "kevinr@puppet.com" ENV PUPPET_AGENT_VERSION="5.3.2" LABEL org.label-schema.vendor="Puppet" \ org.label-schema.name="Puppet Agent (Windows 2016 Core)" \ org.label-schema.license="Apache-2.0" \ org.label-schema.version=$PUPPET_AGENT_VERSION \ org.label-schema.build-date="2017-10-12T14:57:00Z" \ org.label-schema.schema-version="1.0" ENV PUPPET_MASTER=puppet ADD https://downloads.puppetlabs.com/windows/puppet/puppet-agent-x64-latest.msi /windows/temp/puppet-agent-x64-latest.msi COPY ./run-puppet.cmd /run-puppet.cmd RUN msiexec /qn /norestart /i c:\windows\temp\puppet-agent-x64-latest.msi PUPPET_AGENT_STARTUP_MODE=Manual && del c:\windows\temp\puppet-agent-x64-latest.msi CMD c:\run-puppet.cmd