aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: c7441a5e07c7b45cad486026a84730e2421a6676 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# hadolint ignore=DL3007
FROM alpine:latest

ARG NEOVIM_VERSION=-

# hadolint ignore=DL3018
RUN echo "@testing https://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
  apk update && \
  apk --no-cache add \
    autoconf \
    automake \
    bash \
    build-base \
    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 && \
  rm -rf /tmp/nvim