Skip to content

Instantly share code, notes, and snippets.

@jgardner04
Created December 18, 2018 20: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 jgardner04/70d0f5bfaac664bb6b49e8312411f642 to your computer and use it in GitHub Desktop.
Save jgardner04/70d0f5bfaac664bb6b49e8312411f642 to your computer and use it in GitHub Desktop.
Azure DevOps Build Agent Dockerfile
# 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