File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM mcr.microsoft.com/powershell:7.3-alpine-3.17 as base
2+ SHELL ["pwsh" , "-Command" , "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';" ]
3+ RUN Set-PSRepository -Name PSGallery -InstallationPolicy Trusted; \
4+ Install-Module Configuration -RequiredVersion 1.6.0 -Repository PSGallery -Scope AllUsers -Verbose; \
5+ Install-Module PSSlack -RequiredVersion 1.0.6 -Repository PSGallery -Scope AllUsers -Verbose;
6+
7+ FROM base as src
8+ ARG version
9+ LABEL maintainer="devblackops"
10+ LABEL description="PoshBot container for Alpine 3.17"
11+ LABEL vendor="poshbotio"
12+ COPY ["/out/PoshBot/$version" , "/opt/microsoft/powershell/7/Modules/PoshBot/" ]
13+ COPY ["/docker/docker_entrypoint.ps1" , "/poshbot/docker_entrypoint.ps1" ]
14+ WORKDIR /poshbot/
15+ VOLUME ["/poshbot_data" ]
16+ VOLUME ["/root/.local/share/powershell/Modules" ]
17+ SHELL ["pwsh" , "-Command" , "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';" ]
18+ CMD ["pwsh" , "docker_entrypoint.ps1" ]
You can’t perform that action at this time.
0 commit comments