-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (28 loc) · 809 Bytes
/
Dockerfile
File metadata and controls
36 lines (28 loc) · 809 Bytes
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
31
32
33
34
35
36
# Dockerised nvim builder
# Xander Soldaat <xander@botbench.com>
FROM debian:bookworm
ENV DEBIAN_FRONTEND=noninteractive \
NVIM_URL=https://github.com/neovim/neovim.git \
INSTALL_DIR=/opt/nvim \
DUMP_DIR=/mnt
ARG USERNAME=nvimbuild
ARG USER_UID=1000
ARG USER_GID=1000
RUN groupadd --gid ${USER_GID} ${USERNAME} && \
useradd -m -s /bin/bash --uid ${USER_UID} --gid ${USER_GID} ${USERNAME}
# Install dependencies and clean up
RUN apt-get update && apt-get install -y \
git \
ninja-build \
gettext \
cmake \
unzip \
curl \
bash \
bzip2 \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p /source ${INSTALL_DIR} && chown ${USERNAME} /source ${INSTALL_DIR}
COPY buildnvim.sh /source
USER nvimbuild
WORKDIR /source
CMD ["/bin/sh", "/source/buildnvim.sh"]