Created
February 18, 2018 13:46
-
-
Save VireshDoshi/b3df00e79c37b47de224b25d8522b7e2 to your computer and use it in GitHub Desktop.
Dockerfile for node apps with devops tools baked in like git, terraform and packer
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 node:8.9.4 | |
RUN mkdir /root/packer | |
WORKDIR /root/packer | |
RUN wget https://releases.hashicorp.com/packer/1.1.3/packer_1.1.3_linux_amd64.zip | |
RUN wget https://releases.hashicorp.com/terraform/0.11.1/terraform_0.11.1_linux_amd64.zip | |
RUN apt-get update \ | |
&& apt-get install unzip -y \ | |
&& unzip packer_1.1.3_linux_amd64.zip \ | |
&& unzip terraform_0.11.1_linux_amd64.zip \ | |
&& mv packer /usr/local/bin/packer \ | |
&& mv terraform /usr/local/bin/terraform \ | |
&& rm packer_1.1.3_linux_amd64.zip \ | |
&& rm terraform_0.11.1_linux_amd64.zip \ | |
&& mkdir /root/git \ | |
&& mkdir /source | |
WORKDIR /root/git | |
RUN apt-get install build-essential libssl-dev libcurl4-gnutls-dev libexpat1-dev gettext unzip -y | |
RUN wget https://github.com/git/git/archive/v2.9.5.zip -O git.zip \ | |
&& unzip git.zip | |
WORKDIR /root/git/git-2.9.5 | |
RUN make configure \ | |
&& ./configure --prefix=/usr \ | |
&& make all \ | |
&& make install | |
WORKDIR /source |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment