Created
August 13, 2018 05:45
-
-
Save WernerMairl/58ff2c59ba90c6bf02d74d980bd2143b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM openjdk:8-jdk-stretch | |
ENV PWSH_VERSION 6.0.4* | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt-get update && apt-get install -y --no-install-recommends apt-utils && apt-get install --no-install-recommends -y curl gnupg apt-transport-https \ | |
&& curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \ | |
&& sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch main" > /etc/apt/sources.list.d/microsoft.list' \ | |
&& apt-get update && apt-get install --no-install-recommends -y powershell=${PWSH_VERSION} \ | |
&& rm -rf /var/lib/apt/lists/* | |
RUN pwsh -Command Install-Module -Name AzureRM.Netcore -Force && pwsh -Command Import-Module -Name AzureRM.Netcore -Force | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment