From ddbd692f8fc7865c8ff179bcf3e6c339e53ea0f4 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Sat, 20 Apr 2024 01:41:39 +0000 Subject: [PATCH] feat: Posh.ps.Dockerfile ( Fixes #386 ) Making all installs a single layer --- Dockerfile | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index e57f96a..6684b91 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,15 +13,10 @@ RUN pwsh -c "Add-Content -Path \$Profile -Value 'Import-Module $ModuleName' -For # and add them to the profile so they are available when the container starts. -RUN pwsh -c "Install-Module -Name 'EZOut' -Force -AllowClobber -Scope CurrentUser -PassThru" +RUN pwsh -c "Install-Module -Name 'EZOut','PipeScript','HelpOut','PSSVG','Splatter','ShowDemo' -Force -AllowClobber -Scope CurrentUser -PassThru" RUN pwsh -c "Add-Content -Path \$Profile -Value 'Import-Module EZOut' -Force" -RUN pwsh -c "Install-Module -Name 'PipeScript' -Force -AllowClobber -Scope CurrentUser -PassThru" RUN pwsh -c "Add-Content -Path \$Profile -Value 'Import-Module PipeScript' -Force" -RUN pwsh -c "Install-Module -Name 'HelpOut' -Force -AllowClobber -Scope CurrentUser -PassThru" RUN pwsh -c "Add-Content -Path \$Profile -Value 'Import-Module HelpOut' -Force" -RUN pwsh -c "Install-Module -Name 'PSSVG' -Force -AllowClobber -Scope CurrentUser -PassThru" RUN pwsh -c "Add-Content -Path \$Profile -Value 'Import-Module PSSVG' -Force" -RUN pwsh -c "Install-Module -Name 'Splatter' -Force -AllowClobber -Scope CurrentUser -PassThru" RUN pwsh -c "Add-Content -Path \$Profile -Value 'Import-Module Splatter' -Force" -RUN pwsh -c "Install-Module -Name 'ShowDemo' -Force -AllowClobber -Scope CurrentUser -PassThru" RUN pwsh -c "Add-Content -Path \$Profile -Value 'Import-Module ShowDemo' -Force"