1
0
vmcli-powershell-container/Containerfile

5 lines
310 B
Plaintext
Raw Normal View History

FROM mcr.microsoft.com/powershell:ubi
RUN /opt/microsoft/powershell/7/pwsh -Command Set-PSRepository -Name 'PSGallery' -Verbose -InstallationPolicy Trusted \
&& /opt/microsoft/powershell/7/pwsh -Command Install-Module VMware.PowerCLI -Verbose -Scope AllUsers -AllowClobber -AcceptLicense -Confirm:\$false