Skip to content

Instantly share code, notes, and snippets.

@SeriaWei
Last active July 3, 2019 00:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SeriaWei/69a00136bb83716ab567e93a32eceecf to your computer and use it in GitHub Desktop.
Save SeriaWei/69a00136bb83716ab567e93a32eceecf to your computer and use it in GitHub Desktop.
FROM jenkins/jenkins:lts
USER root
WORKDIR /dotnet
RUN wget -O dotnet.tar.gz https://download.visualstudio.microsoft.com/download/pr/72ce4d40-9063-4a2e-a962-0bf2574f75d1/5463bb92cff4f9c76935838d1efbc757/dotnet-sdk-3.0.100-preview6-012264-linux-x64.tar.gz
RUN tar zxf dotnet.tar.gz -C ./
ENV PATH="${PATH}:/dotnet:/var/jenkins_home/.dotnet/tools"
ENV DOTNET_ROOT="/dotnet"
RUN rm -rf dotnet.tar.gz
RUN apt update -y
RUN apt install icu-devtools vim zip unzip -y
RUN usermod -a -G root jenkins
USER jenkins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment