Skip to content

Instantly share code, notes, and snippets.

@jaredlwong
Last active August 29, 2015 13:57
Show Gist options
  • Save jaredlwong/9836948 to your computer and use it in GitHub Desktop.
Save jaredlwong/9836948 to your computer and use it in GitHub Desktop.
Neovim Dockerfile
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