Skip to content

Instantly share code, notes, and snippets.

@Rolilink
Last active August 29, 2015 14:14
Show Gist options
  • Save Rolilink/5864c006fc0b084aa044 to your computer and use it in GitHub Desktop.
Save Rolilink/5864c006fc0b084aa044 to your computer and use it in GitHub Desktop.
loopback-git-base Dockerfile
# LoopBack App Base Image
# Installs StrongLoop and Git
FROM dockerfile/nodejs
#Installing Loopback
RUN npm install -g strongloop
# Installing Git
RUN mkdir /data/git-tmp
WORKDIR /data/git-tmp
RUN apt-get update
sudo apt-get install build-essential libssl-dev libcurl4-gnutls-dev libexpat1-dev gettext unzip && \
wget https://github.com/git/git/archive/v1.9.4.tar.gz && \
cd git-1.9.4 && \
make prefix=/usr/local all && \
sudo make prefix=/usr/local instal && \
rm /data/git-tmp -Rvf
# Setup Git
RUN git config --global user.name "your username" && \
git config --global user.email "your email"
CMD ["/bin/bash", "--login"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment