From 2019d0c825468ddadb0e3922c7be3ff02c602d12 Mon Sep 17 00:00:00 2001 From: Brett Anspach Date: Mon, 16 May 2022 16:14:14 -0500 Subject: [PATCH] INF-2341 Add step to install PSScriptAnalyzer module --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index daf5fbf..77f9f88 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,7 +40,9 @@ 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 -Verbose\; Install-Module PSScriptAnalyzer -Repository PSGallery -Scope AllUsers -Verbose } +#RUN /usr/bin/pwsh -Command { Set-PSRepository PSGallery -InstallationPolicy Trusted -Verbose\; Install-Module PSScriptAnalyzer -Repository PSGallery -Scope AllUsers -Verbose } +SHELL ["pwsh", "-Command"] +RUN Set-PSRepository PSGallery -InstallationPolicy Trusted -Verbose\; Install-Module PSScriptAnalyzer -Repository PSGallery -Scope AllUsers -Verbose COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh