Created
December 18, 2018 20:27
-
-
Save jgardner04/70d0f5bfaac664bb6b49e8312411f642 to your computer and use it in GitHub Desktop.
Azure DevOps Build Agent Dockerfile
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
# Base Image | |
FROM microsoft/vsts-agent | |
# Update packages and install new ones | |
RUN sudo apt-get update \ | |
&& sudo apt-get upgrade -y \ | |
&& sudo apt install apt-utils unzip -y | |
# Install Terraform | |
RUN curl -O https://releases.hashicorp.com/terraform/0.11.7/terraform_0.11.7_linux_amd64.zip \ | |
&& unzip terraform_0.11.7_linux_amd64.zip -d /usr/local/bin/ \ | |
&& export PATH="$PATH:/usr/local/bin" | |
# Insntall NPM Package | |
RUN sudo npm install -g eslint @vue/cli @vue/eslint-config-standard | |
# Set env variables | |
ENV VSTS_AGENT='$(hostname)-agent' | |
ENV VSTS_WORK='/var/vsts/$VSTS_AGENT' | |
CMD ["./start.sh"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment