File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 1+ # --platform linux/arm/v7
2+ FROM debian:bullseye-slim
3+
4+ # Install dependencies
5+ RUN apt-get update && apt-get install -y curl libicu67 libssl1.1 libunwind8
6+
7+ # Download and install PowerShell
8+ RUN curl -L -o powershell.tar.gz https://github.com/PowerShell/PowerShell/releases/download/v7.5.2/powershell-7.5.2-linux-arm32.tar.gz \
9+ && mkdir -p /opt/microsoft/powershell/7 \
10+ && tar -xzf powershell.tar.gz -C /opt/microsoft/powershell/7 \
11+ && rm powershell.tar.gz \
12+ && chmod +x /opt/microsoft/powershell/7/pwsh \
13+ && ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh
14+
15+ # Install PnP.PowerShell module
16+ SHELL ["pwsh" , "-command" ]
17+ ARG PNP_VERSION
18+ RUN Install-Module -Name PnP.PowerShell -RequiredVersion $env:PNP_VERSION -Force -Scope AllUsers -AllowPrerelease -SkipPublisherCheck
19+
20+ ENTRYPOINT ["pwsh" ]
You can’t perform that action at this time.
0 commit comments