-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile_Dev
More file actions
executable file
·52 lines (42 loc) · 1.66 KB
/
Copy pathDockerfile_Dev
File metadata and controls
executable file
·52 lines (42 loc) · 1.66 KB
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
FROM ubuntu:latest
LABEL author="Pai Lee Wai" email="pailee.wai@gmail.com"
WORKDIR $HOME/Docker
# Aria2 dependencies
RUN apt-get update && \
apt-get install -y \
gettext nettle-dev libgmp3-dev \
libssh-dev libc-ares-dev libxml2-dev zlib1g-dev \
libsqlite3-dev pkg-config libgcrypt-dev libssl-dev \
libexpat-dev gcc g++ libcppunit-dev autoconf \
automake libtool make autopoint
# Install git
RUN apt-get install -y git
# Install wget
RUN apt-get install -y wget
# Install Nodejs
RUN wget https://nodejs.org/dist/v10.0.0/node-v10.0.0-linux-x64.tar.xz
RUN tar -xf node-v10.0.0-linux-x64.tar.xz --directory /usr/local --strip-components 1
# Electron dependencies
RUN apt-get install -y libgtk2.0-0
RUN apt-get install -y libx11-xcb-dev
RUN apt-get install -y libxtst6
RUN apt-get install -y libxss1
RUN apt-get install -y libgconf-2-4
RUN apt-get install -y libnss3-dev
RUN apt-get install -y build-essential clang libdbus-1-dev libgtk-3-dev \
libnotify-dev libgnome-keyring-dev libgconf2-dev \
libasound2-dev libcap-dev libcups2-dev libxtst-dev \
libxss1 libnss3-dev gcc-multilib g++-multilib curl \
gperf bison
# Install curl
RUN apt-get install -y curl
# Install yarn
RUN curl -o- -L https://yarnpkg.com/install.sh | bash
# Clone and build Aria2
ADD https://api.github.com/repos/aria2/aria2/git/refs/heads/master version.json
RUN git clone https://github.com/aria2/aria2
RUN cd aria2 && autoreconf -i && ./configure --enable-libaria2 && make
RUN && cd aria2 && make install
# docker command
# xhost local:root
# docker run -it -v /tmp/.X11-unix:/tmp/.X11-unix -v $HOME/ADM:/Docker/ADM -e DISPLAY=$DISPLAY --device=/dev/dri:/dev/dri UR_DOCKER_IMG_NAME bash