diff options
author | Cody Hiar <cody.hiar@investopedia.com> | 2016-08-28 16:53:25 -0600 |
---|---|---|
committer | Cody Hiar <cody.hiar@investopedia.com> | 2016-08-28 16:53:25 -0600 |
commit | 7641b3272fabd1112d30b5b1c07c32f6f9e51050 (patch) | |
tree | 696afa880ef927cf0123e69e96bff75727fe30d7 /Dockerfile.python | |
parent | 8f1d9fa477434368a7f41fb2896bf1be6b048c8a (diff) |
Break neovim into separate images. Makes it quicker to compile new
changes
Diffstat (limited to 'Dockerfile.python')
-rw-r--r-- | Dockerfile.python | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/Dockerfile.python b/Dockerfile.python new file mode 100644 index 0000000..bca59f3 --- /dev/null +++ b/Dockerfile.python @@ -0,0 +1,46 @@ +FROM ubuntu:14.04 +MAINTAINER Cody Hiar <codyfh@gmail.com> + +# Set the working directory +WORKDIR /src + +# Fix upstart errors +RUN dpkg-divert --local --rename --add /sbin/initctl +RUN ln -sf /bin/true /sbin/initctl + +# This prevents a bunch of errors during build +ENV DEBIAN_FRONTEND noninteractive + +# Avoid ERROR: invoke-rc.d: policy-rc.d denied execution of start. +RUN echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d + + +# Install packages +RUN apt-get update && apt-get install -y \ + software-properties-common \ + git \ + ack-grep \ + python-dev \ + python-pip \ + python3-dev \ + python3-pip + +# Set git stuff +RUN git config --global user.email "codyfh@gmail.com" +RUN git config --global user.name "Cody Hiar" + +# Install Neovim +RUN add-apt-repository ppa:neovim-ppa/unstable -y +RUN apt-get update && apt-get install -y \ + neovim + +# Install the neovim python plugins +RUN pip install neovim flake8 flake8-docstrings flake8-import-order flake8-quotes pep8 pep8-naming pep257 +RUN pip3 install neovim + +# Download my Neovim Repo +RUN git clone https://github.com/thornycrackers/.nvim.git /root/.config/nvim + +# Install neovim Modules +RUN nvim +PlugInstall +qa +RUN nvim +UpdateRemotePlugins +qa |