Last active
August 29, 2015 14:00
-
-
Save netmarkjp/11075381 to your computer and use it in GitHub Desktop.
Dockerfile for CentOS + npm
This file contains hidden or 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 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"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage:
docker run -t -i --publish 10022:22 --name=n1 --detach npm