INF-2341 Add step to install PowerShell

This commit is contained in:
Brett Anspach 2022-05-15 21:16:45 -05:00
parent a31bc25614
commit 40bbed2983

View file

@ -28,14 +28,16 @@ RUN apk add --no-cache \
userspace-rcu \
zlib \
icu-libs \
curl; \
curl \
RUN apk -X https://dl-cdn.alpinelinux.org/alpine/edge/main add --no-cache \
lttng-ust;
lttng-ust
RUN wget -O powershell.tar.gz -fSL https://github.com/PowerShell/PowerShell/releases/download/v7.2.3/powershell-7.2.3-linux-alpine-x64.tar.gz; \
mkdir -p /opt/microsoft/powershell/7; \
tar zxf ./powershell.tar.gz -C /opt/microsoft/powershell/7; \
chmod +x /opt/microsoft/powershell/7/pwsh; \
ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh;
ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh