Skip to content

Commit

Permalink
feat: Posh.ps.Dockerfile ( Fixes #386 )
Browse files Browse the repository at this point in the history
Making all installs a single layer
  • Loading branch information
James Brundage committed Apr 20, 2024
1 parent 0cf5bd2 commit 98d048e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Posh.ps.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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`""
# }
#}

0 comments on commit 98d048e

Please sign in to comment.