Skip to content

Commit a375c7b

Browse files
authored
Create linux-arm32.dockerfile
1 parent d30e72f commit a375c7b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docker/linux-arm32.dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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"]

0 commit comments

Comments
 (0)