Last active
November 21, 2022 12:57
-
-
Save subudear/bcdf8cf1d68c96670a5057062d773257 to your computer and use it in GitHub Desktop.
Dockerfile to create image with vsts agent for dotnet SDK 2.2
This file contains 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 microsoft/vsts-agent:ubuntu-16.04-docker-17.12.0-ce | |
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - | |
RUN apt-get install -y nodejs | |
RUN node -v | |
RUN apt-get update | |
RUN apt-get install -y wget | |
RUN wget -q https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb | |
RUN dpkg -i packages-microsoft-prod.deb | |
RUN apt-get install -y apt-transport-https | |
RUN apt-get update | |
RUN apt-get install -y dotnet-sdk-2.2 | |
RUN wget -q https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb | |
RUN dpkg -i packages-microsoft-prod.deb | |
RUN apt-get update | |
RUN apt-get install -y powershell | |
RUN pwsh | |
RUN apt-get update | |
RUN apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg-agent \ | |
software-properties-common | |
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - | |
RUN add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) \ | |
stable" | |
RUN apt-get update | |
RUN apt-get install -y docker-ce docker-ce-cli containerd.io | |
RUN curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
RUN chmod +x /usr/local/bin/docker-compose | |
RUN ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment