Skip to content

Instantly share code, notes, and snippets.

@netmarkjp
Last active August 29, 2015 14:00
Show Gist options
  • Save netmarkjp/11075381 to your computer and use it in GitHub Desktop.
Save netmarkjp/11075381 to your computer and use it in GitHub Desktop.
Dockerfile for CentOS + npm
FROM centos
RUN yum -y update
RUN yum -y groupinstall core
RUN yum -y groupinstall base
RUN echo 'p@ssw0rd' | passwd --stdin root
RUN service sshd start
RUN service sshd stop
RUN touch /etc/sysconfig/network
RUN rm -f /etc/localtime ; ln -s /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
RUN yum -y install gcc-c++
RUN rpm -ivh http://ftp.riken.jp/Linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
RUN yum -y install nodejs npm --enablerepo=epel
RUN npm install bower -g
RUN yum -y install git vim-enhanced
EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]
@netmarkjp
Copy link
Author

Usage: docker run -t -i --publish 10022:22 --name=n1 --detach npm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment