Skip to content

Commit 98d048e

Browse files
author
James Brundage
committed
feat: Posh.ps.Dockerfile ( Fixes #386 )
Making all installs a single layer
1 parent 0cf5bd2 commit 98d048e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Posh.ps.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ RUN pwsh -c "Add-Content -Path \$Profile -Value 'Import-Module $ModuleName' -For
1616
# $importedModule = Import-Module ./ -PassThru
1717
# $importedModuleNames =
1818
# @($importedModule.Recommends.Url) -notmatch '/' -join "','"
19+
# "RUN pwsh -c `"Install-Module -Name '$importedModuleNames' -Force -AllowClobber -Scope CurrentUser -PassThru`""
1920
# foreach ($recommendedModule in $importedModule.Recommends) {
2021
# continue if $recommendedModule.Url -match '/'
21-
# "RUN pwsh -c `"Install-Module -Name '$($recommendedModule.Url)' -Force -AllowClobber -Scope CurrentUser -PassThru`""
2222
# "RUN pwsh -c `"Add-Content -Path \`$Profile -Value 'Import-Module $($recommendedModule.Url)' -Force`""
2323
# }
2424
#}

0 commit comments

Comments
 (0)