Created
July 12, 2014 16:54
-
-
Save yaasita/5fed527f642a579acf84 to your computer and use it in GitHub Desktop.
This file contains 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 debian:jessie | |
MAINTAINER yaasita | |
#apt | |
RUN apt-get update | |
#package | |
RUN apt-get install -y vim git aptitude build-essential nodejs libgnome-keyring-dev npm paco \ | |
libgconf-2-4 libgtk2.0-0 libgtk2.0-0-dbg libnss3 libxtst6 libxtst6-dbg libasound2 x11-apps | |
#npm config | |
RUN npm config set python /usr/bin/python2 -g | |
#ssh | |
RUN apt-get install -y openssh-server | |
RUN mkdir /var/run/sshd/ | |
RUN mkdir /root/.ssh | |
ADD authorized_keys /root/.ssh/authorized_keys | |
RUN echo root:root | chpasswd | |
RUN perl -i -ple 's/^(permitrootlogin\s)(.*)/\1yes/i' /etc/ssh/sshd_config | |
CMD /usr/sbin/sshd -D |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment