Skip to content

Instantly share code, notes, and snippets.

@yaasita
Created July 12, 2014 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yaasita/5fed527f642a579acf84 to your computer and use it in GitHub Desktop.
Save yaasita/5fed527f642a579acf84 to your computer and use it in GitHub Desktop.
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