-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
25 lines (19 loc) · 952 Bytes
/
Dockerfile
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
# builder for onivim
FROM ubuntu:focal
VOLUME /home/oni
env DEBIAN_FRONTEND noninteractive
env TAG ''
RUN useradd -m -s /bin/bash oni
RUN apt -y update && apt install -y \
git sudo curl clang gcc g++ make unzip python m4 wget \
nasm libacl1-dev libncurses-dev libbz2-dev \
libglu1-mesa-dev libxxf86vm-dev libxkbfile-dev libxext-dev libxt-dev libfontconfig1-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libsdl2-2.0-0 \
libgl1-mesa-dev mesa-utils mesa-utils-extra ragel libgtk-3-dev libharfbuzz0b \
&& curl -sL https://deb.nodesource.com/setup_12.x -o /node_setup.sh \
&& chmod +x /node_setup.sh && /node_setup.sh \
&& apt install -y nodejs \
&& rm -rf /var/lib/apt/lists/*
RUN npm install -g esy@latest --unsafe-perm=true && npm install -g node-gyp
COPY build-onivim2 /build-onivim2
COPY oni2-package.patch /oni2-package.patch
CMD ["sh", "-c", "chown -R oni /home/oni; sudo -u oni /build-onivim2 $TAG"]