Skip to content

Instantly share code, notes, and snippets.

@ayinlaaji
Created October 14, 2019 10:04
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 ayinlaaji/cc3592a1a7923892772db9c7908a9686 to your computer and use it in GitHub Desktop.
Save ayinlaaji/cc3592a1a7923892772db9c7908a9686 to your computer and use it in GitHub Desktop.
Dockerfile to setup development environment
FROM debian:buster
MAINTAINER abdul@quadlobe.com
WORKDIR /quadlobe
ADD https://raw.githubusercontent.com/ayinlaaji/dotfile/master/init.vim /root/.config/nvim/init.vim
ADD https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim /root/.local/share/nvim/site/autoload/plug.vim
ADD https://github.com/bazelbuild/bazel/releases/download/0.27.0/bazel-0.27.0-installer-linux-x86_64.sh /opt/bazel-0.27.0-installer-linux-x86_64.sh
ADD https://deb.nodesource.com/setup_12.x /opt/nodejs_setup_12.x
ADD https://yarnpkg.com/install.sh /opt/yarn_installer.sh
RUN git clone https://github.com/ayinlaaji/ultisnips.git /.vim/UltiSnips
RUN apt-get update
RUN apt-get install -y build-essential protobuf-compiler \
pkg-config zip zlib1g-dev unzip python git golang \
python3 python3-dev python-pip python3-pip \
curl screen neovim python-neovim python3-neovim
RUN bash /opt/nodejs_setup_12.x && apt-get install -y nodejs && bash /opt/yarn_installer.sh
RUN npm install -g trash-cli prettier typescript
RUN chmod +x /opt/bazel-0.27.0-installer-linux-x86_64.sh && bash /opt/bazel-0.27.0-installer-linux-x86_64.sh
@lapwat
Copy link

lapwat commented Oct 15, 2019

  • Add git toapt-get install
  • Line 10 should be after apt-get install because it is using git
...
ADD https://yarnpkg.com/install.sh /opt/yarn_installer.sh 
RUN apt-get update
RUN apt-get install -y build-essential protobuf-compiler \
		pkg-config zip zlib1g-dev unzip python git golang \
		python3 python3-dev python-pip python3-pip \
		curl screen neovim python-neovim python3-neovim \
                git
RUN git clone https://github.com/ayinlaaji/ultisnips.git /.vim/UltiSnips
...

How to use it? Where is the README?

@ayinlaaji
Copy link
Author

Git is already in apt-get install.
Yes you're right about line 10. I'm not entirely sure why I put it there.

@ayinlaaji
Copy link
Author

Maybe I should make this into a git repo so you can make updates

@ayinlaaji
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment