-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
86 lines (78 loc) · 1.65 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
FROM ubuntu:20.04
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=America/New_York
RUN apt update && \
apt install -y \
sudo \
git \
curl \
nano \
wget \
build-essential \
brightnessctl \
rustc \
autotools-dev \
automake \
libtool \
libtool-bin \
libevdev-dev \
libdrm-dev \
python3 \
python3-pip \
python3-setuptools \
python3-wheel \
ninja-build \
libopenal-dev \
premake4 \
autoconf \
ffmpeg \
libsnappy-dev \
libboost-tools-dev \
magics++ \
libboost-thread-dev \
libboost-all-dev \
pkg-config \
zlib1g-dev \
libpng-dev \
libsdl2-dev \
clang \
cmake \
cmake-data \
libarchive13 \
libcurl4 \
libfreetype6-dev \
libjsoncpp1 \
librhash0 \
libuv1 \
mercurial \
mercurial-common \
libgbm-dev \
libsdl2-ttf-2.0-0 \
libsdl2-ttf-dev
RUN apt update
RUN ln -s /usr/include/libdrm/ /usr/include/drm
# Install meson
RUN pip3 install meson
WORKDIR /root
RUN git clone https://github.com/mesonbuild/meson.git && \
cd meson && \
ln -s /meson/meson.py /usr/bin/meson
# Install librga
WORKDIR /root
RUN git clone https://github.com/rockchip-linux/linux-rga.git && \
cd linux-rga && \
meson builddir && \
cd builddir && \
meson compile && \
meson install
# Install libgo2
WORKDIR /root
RUN git clone https://github.com/OtherCrashOverride/libgo2.git && \
cd libgo2 && \
make && \
mkdir -p /usr/include/go2 && \
cp src/*.h /usr/include/go2/ && \
cp libgo2.so /usr/local/lib/
# Get Rust
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"