Skip to content

Instantly share code, notes, and snippets.

@TianyiLi
Created August 1, 2017 07:12
Show Gist options
  • Save TianyiLi/b768a52103fcd9bf70678b5e4c6b2d92 to your computer and use it in GitHub Desktop.
Save TianyiLi/b768a52103fcd9bf70678b5e4c6b2d92 to your computer and use it in GitHub Desktop.
ubuntu 12.04 with nodejs 6.11.1 and dbus-dev lib
FROM ubuntu:12.04
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y build-essential && \
apt-get install -y python-software-properties software-properties-common && \
apt-get install -y byobu curl git htop man unzip vim wget pkg-config libdbus-1-dev && \
add-apt-repository -y ppa:ubuntu-toolchain-r/test && \
apt-get update && \
apt-get install -y gcc-4.9 g++-4.9 && \
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9
RUN wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
RUN nvm install --lts
RUN nvm use --lts
# Set environment variables.
ENV HOME /root
# Define working directory.
WORKDIR /root
# Define default command.
CMD ["bash"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment