From eb11d37a62ea7c46cd185feffa8841c71ea83d92 Mon Sep 17 00:00:00 2001 From: Brett Anspach Date: Sun, 15 May 2022 21:29:52 -0500 Subject: [PATCH] INF-2341 Add step to install PSScriptAnalyzer module --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1fb9a56..2315f4e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,8 +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; Install-Module PSScriptAnalyzer -ErrorAction Stop } COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh