nvim (latest)
Published 2024-08-05 14:14:13 -06:00 by mlow
Installation
docker pull git.mlow.ca/mlow/nvim:latest
sha256:a82a4aca69ed6515988c5cdedc688272301a4af48503d3a6074a2d8483b1815f
Image Layers
ADD file:430cca9ad155514d8c818e860e66e2aeccfb6230874d4faf446a1d0c2fc1054f in / |
CMD ["bash"] |
ARG NVIM_VERSION=0.10.0 |
ARG EXTRA_PACKAGES |
|2 EXTRA_PACKAGES=age kitty-terminfo wl-clipboard NVIM_VERSION=0.10.0 /bin/sh -c apt-get update -q && apt-get install -yq --no-install-recommends bash-completion build-essential ca-certificates cmake curl gettext gettext-base git less locales man-db manpages manpages-dev ninja-build openssh-client ripgrep tmux unzip $EXTRA_PACKAGES && apt-get clean && rm -rf /var/lib/apt/lists/* |
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 |
|2 EXTRA_PACKAGES=age kitty-terminfo wl-clipboard NVIM_VERSION=0.10.0 /bin/sh -c sed -i "/${LANG}/s/^# //g" /etc/locale.gen && locale-gen |
ARG NVIM_SRC_TARBALL=/usr/local/src/neovim-0.10.0.tar.gz |
ARG NVIM_BUILD_TYPE=RelWithDebInfo |
|4 EXTRA_PACKAGES=age kitty-terminfo wl-clipboard NVIM_BUILD_TYPE=RelWithDebInfo NVIM_SRC_TARBALL=/usr/local/src/neovim-0.10.0.tar.gz NVIM_VERSION=0.10.0 /bin/sh -c mkdir -p /usr/local/src && curl -Lo ${NVIM_SRC_TARBALL} https://github.com/neovim/neovim/archive/refs/tags/v${NVIM_VERSION}.tar.gz && tar -xvf ${NVIM_SRC_TARBALL} -C /usr/local/src/ && cd /usr/local/src/neovim-${NVIM_VERSION} && make CMAKE_BUILD_TYPE=${NVIM_BUILD_TYPE} && make install && ln -s /usr/local/bin/nvim /usr/local/bin/vi && ln -s /usr/local/bin/nvim /usr/local/bin/vim |
ENV EDITOR=nvim |
ARG UID=1000 |
ARG GID=1000 |
ARG SHELL=/bin/bash |
|7 EXTRA_PACKAGES=age kitty-terminfo wl-clipboard GID=1000 NVIM_BUILD_TYPE=RelWithDebInfo NVIM_SRC_TARBALL=/usr/local/src/neovim-0.10.0.tar.gz NVIM_VERSION=0.10.0 SHELL=/bin/bash UID=1000 /bin/sh -c groupadd -g ${GID} nvim && useradd -m -s ${SHELL} -u ${UID} -g nvim nvim |
COPY file:03446ce6a8435d4790029bdb40f9edb016a4cd0019fb6775e7e7de057c6cbfc8 in /entrypoint.sh |
ENTRYPOINT ["/entrypoint.sh"] |
USER nvim |
ARG SOPS_VERSION=3.8.1 |
ARG SOPS_URL=https://github.com/getsops/sops/releases/download/v3.8.1/sops-v3.8.1.linux.amd64 |
|2 SOPS_URL=https://github.com/getsops/sops/releases/download/v3.8.1/sops-v3.8.1.linux.amd64 SOPS_VERSION=3.8.1 /bin/sh -c mkdir -p "$HOME/.local/bin" && curl -Lo "$HOME/.local/bin/sops" "${SOPS_URL}" && chmod +x "$HOME/.local/bin/sops" |
ENV PATH=/home/nvim/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
COPY --chown=nvimfile:7dbbf456b37014f49286a0b32ea10b52dcd5514df7a2d0bda51fcbfad9bbd00c in /home/nvim/.config/nvim/ |
COPY --chown=nvimdir:049fc998f03934065b26b0eeba539169523e511cfb6b2858b0f1b02d26e6986d in /home/nvim/.config/nvim/lua/ |
|2 SOPS_URL=https://github.com/getsops/sops/releases/download/v3.8.1/sops-v3.8.1.linux.amd64 SOPS_VERSION=3.8.1 /bin/sh -c nvim --headless +'Lazy! install' +'TSUpdateSync' +qa |
WORKDIR /workspace |