From 98d048e5bd700fea222da3525439111bb36c067b Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Fri, 19 Apr 2024 18:39:01 -0700 Subject: [PATCH] feat: Posh.ps.Dockerfile ( Fixes #386 ) Making all installs a single layer --- Posh.ps.Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Posh.ps.Dockerfile b/Posh.ps.Dockerfile index 390cd24..de41636 100644 --- a/Posh.ps.Dockerfile +++ b/Posh.ps.Dockerfile @@ -16,9 +16,9 @@ RUN pwsh -c "Add-Content -Path \$Profile -Value 'Import-Module $ModuleName' -For # $importedModule = Import-Module ./ -PassThru # $importedModuleNames = # @($importedModule.Recommends.Url) -notmatch '/' -join "','" +# "RUN pwsh -c `"Install-Module -Name '$importedModuleNames' -Force -AllowClobber -Scope CurrentUser -PassThru`"" # foreach ($recommendedModule in $importedModule.Recommends) { # continue if $recommendedModule.Url -match '/' -# "RUN pwsh -c `"Install-Module -Name '$($recommendedModule.Url)' -Force -AllowClobber -Scope CurrentUser -PassThru`"" # "RUN pwsh -c `"Add-Content -Path \`$Profile -Value 'Import-Module $($recommendedModule.Url)' -Force`"" # } #} \ No newline at end of file