Skip to content

Instantly share code, notes, and snippets.

@WernerMairl
Created August 13, 2018 05:45
Show Gist options
  • Save WernerMairl/58ff2c59ba90c6bf02d74d980bd2143b to your computer and use it in GitHub Desktop.
Save WernerMairl/58ff2c59ba90c6bf02d74d980bd2143b to your computer and use it in GitHub Desktop.
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