Last active
August 29, 2015 13:57
-
-
Save jaredlwong/9836948 to your computer and use it in GitHub Desktop.
Neovim Dockerfile
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 ubuntu | |
# make sure the package repository is up to date | |
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list | |
RUN apt-get update | |
RUN apt-get install -y openssh-server | |
RUN mkdir /var/run/sshd | |
# set up root:root and me:me | |
RUN echo 'root:root' | chpasswd | |
RUN adduser me | |
RUN adduser me sudo | |
RUN echo 'me:me' | chpasswd | |
# run other commands as me | |
# install general system dependencies | |
RUN su - me -c 'echo me | sudo -S apt-get install -y git make unzip' | |
# install neovim dependencies | |
RUN su - me -c 'echo me | sudo -S apt-get install -y libtool autoconf automake cmake libncurses5-dev g++ pkg-config' | |
RUN su - me -c 'git clone https://github.com/neovim/neovim' | |
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