FROM alpine:latest ARG NEOVIM_VERSION=v0.9.2 RUN apk --no-cache add \ autoconf \ automake \ bash \ build-base \ cargo \ cmake \ coreutils \ curl \ gettext-tiny-dev \ git \ libtool \ pkgconf \ unzip \ wget SHELL ["/bin/bash", "-o", "pipefail", "-c"] WORKDIR /tmp/nvim RUN git clone --depth 1 --branch ${NEOVIM_VERSION} https://github.com/neovim/neovim . && \ make CMAKE_BUILD_TYPE=Release && \ make install && \ cargo install stylua && \ rm -rf /tmp/nvim ENV PATH="/root/.cargo/bin:${PATH}"