Create a Docker image with Nodejs, Ruby, Python on Ubuntu 16.04
FROM ubuntu:16.04 | |
MAINTAINER Bryan Nguyen <dongchirua@live.com> | |
# www.nhquy.com | |
# install some dependencies | |
RUN apt-get update && \ | |
apt-get install -y --force-yes --no-install-recommends\ | |
apt-transport-https \ | |
ssh-client \ | |
build-essential \ | |
curl \ | |
ca-certificates \ | |
git \ | |
libicu-dev \ | |
'libicu[0-9][0-9].*' \ | |
lsb-release \ | |
python-all \ | |
rlwrap \ | |
apt-utils \ | |
build-essential \ | |
libssl-dev \ | |
curl \ | |
graphicsmagick --fix-missing \ | |
imagemagick --fix-missing \ | |
git \ | |
telnet | |
# install nodejs 0.12.15 | |
# change url to your desire nodejs version | |
RUN curl https://deb.nodesource.com/node_0.12/pool/main/n/nodejs/nodejs_0.12.15-1nodesource1~xenial1_amd64.deb > node.deb \ | |
&& dpkg -i node.deb \ | |
&& rm node.deb | |
RUN npm install -g pangyp\ | |
&& ln -s $(which pangyp) $(dirname $(which pangyp))/node-gyp\ | |
&& npm cache clear\ | |
&& node-gyp configure || echo "" | |
# install forever, bower and grunt | |
RUN npm install forever -g && \ | |
npm install -g bower && \ | |
npm install -g grunt-cli | |
# install ruby | |
RUN apt-get install -y ruby ruby-dev ruby-bundler | |
# https://www.ctl.io/developers/blog/post/dockerfile-entrypoint-vs-cmd/ | |
CMD ["bash"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment