INF-2341 Add step to install PSScriptAnalyzer module

This commit is contained in:
Brett Anspach 2022-05-15 21:54:53 -05:00
parent 18b0cb392d
commit 53d0b3cafe

View file

@ -40,7 +40,7 @@ RUN wget -O powershell.tar.gz https://github.com/PowerShell/PowerShell/releases/
ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh
# Install PSScriptAnalyzer
RUN /usr/bin/pwsh -Command { Set-PSRepository PSGallery -InstallationPolicy Trusted\; Install-Module PSScriptAnalyzer -ErrorAction Stop }
RUN /usr/bin/pwsh -Command { Set-PSRepository PSGallery -InstallationPolicy Trusted -Verbose\; Install-Module PSScriptAnalyzer -Verbose -ErrorAction Stop }
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh