Skip to content

Instantly share code, notes, and snippets.

@jaredlwong
Last active August 29, 2015 13:57

Revisions

  1. jaredlwong revised this gist Mar 28, 2014. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions neovim.dockerfile
    Original file line number Diff line number Diff line change
    @@ -13,8 +13,6 @@ RUN adduser me
    RUN adduser me sudo
    RUN echo 'me:me' | chpasswd

    RUN apt-get install -y vim

    # run other commands as me
    # install general system dependencies
    RUN su - me -c 'echo me | sudo -S apt-get install -y git make unzip'
  2. jaredlwong created this gist Mar 28, 2014.
    26 changes: 26 additions & 0 deletions neovim.dockerfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,26 @@
    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 apt-get install -y vim

    # 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