Skip to content

Instantly share code, notes, and snippets.

@delphinus
Created October 27, 2022 02:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save delphinus/afe3d94cab35f55bb1d4f79e74245cc5 to your computer and use it in GitHub Desktop.
Save delphinus/afe3d94cab35f55bb1d4f79e74245cc5 to your computer and use it in GitHub Desktop.
# syntax = docker/dockerfile:1.3-labs
FROM ubuntu:latest
RUN yes | unminimize
RUN apt-get update && apt-get install -y tzdata
# https://sleepless-se.net/2018/07/31/docker-build-tzdata-ubuntu/
ENV TZ=Asia/Tokyo
RUN apt-get install -y ninja-build gettext libtool libtool-bin autoconf automake cmake g++ \
pkg-config unzip git man-db libsqlite3-dev \
wamerican \
golang-go \
nodejs npm \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Install the latest Neovim
RUN git clone --depth 1 --single-branch -b master \
https://github.com/neovim/neovim ~/neovim \
&& cd ~/neovim \
&& make CMAKE_BUILD_TYPE=Release \
&& make CMAKE_INSTALL_PREFIX=$HOME/local/nvim install
RUN echo 'export PATH=$HOME/local/nvim/bin:$PATH' >> ~/.bashrc
RUN echo 'nvim --version' >> ~/.bashrc
RUN echo '(cd ~/neovim; echo "Neovim revision: $(git rev-parse HEAD)")' >> ~/.bashrc
RUN go install github.com/rhysd/vim-startuptime@latest
RUN echo 'export PATH=$HOME/go/bin:$PATH' >> ~/.bashrc
RUN git clone https://github.com/ayamir/nvimdots \
~/.config/nvim
# This is needed to access git@github.com to clone packer.nvim.
COPY <<-"FILE" /root/.gitconfig
[url "https://github.com/"]
insteadOf = "git@github.com:"
FILE
WORKDIR /root
ENTRYPOINT /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment