forked from realies/soulseek-docker
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
30 lines (30 loc) · 1.58 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
FROM resin/rpi-raspbian:latest
COPY qemu-arm-static /usr/bin
copy ui.patch /tmp
run apt-get update && \
apt-get upgrade -y && \
apt-get install -y binutils curl locales net-tools openbox patch supervisor x11vnc xvfb python2.7 gtk2.0 python-gtk2 && \
locale-gen en_US.UTF-8 && \
sudo pip2 install mutagen && \
mkdir /usr/share/novnc && \
curl -fL# https://github.com/novnc/noVNC/archive/master.tar.gz -o /tmp/novnc.tar.gz && \
tar -xf /tmp/novnc.tar.gz --strip-components=1 -C /usr/share/novnc && \
mkdir /usr/share/novnc/utils/websockify && \
curl -fL# https://github.com/novnc/websockify/archive/master.tar.gz -o /tmp/websockify.tar.gz && \
tar -xf /tmp/websockify.tar.gz --strip-components=1 -C /usr/share/novnc/utils/websockify && \
curl -fL# https://use.fontawesome.com/releases/v5.0.10/svgs/solid/cloud-download-alt.svg -o /usr/share/novnc/app/images/downloads.svg && \
curl -fL# https://use.fontawesome.com/releases/v5.0.10/svgs/solid/comments.svg -o /usr/share/novnc/app/images/logs.svg && \
bash -c 'sed -i "s/<path/<path style=\"fill:white\"/" /usr/share/novnc/app/images/{downloads,logs}.svg' && \
patch /usr/share/novnc/vnc.html < /tmp/ui.patch && \
sed -i 's/10px 0 5px/8px 0 6px/' /usr/share/novnc/app/styles/base.css && \
ln -s /squashfs-root/soulseek.png /usr/share/novnc/app/images/soulseek.png && \
ln -s /root/Soulseek\ Chat\ Logs /usr/share/novnc/logs && \
ln -s /root/Soulseek\ Downloads /usr/share/novnc/downloads && \
apt install nicotine -y
env LANG en_US.UTF-8
env LANGUAGE en_US:en
env LC_ALL en_US.UTF-8
copy etc /etc
copy usr /usr
copy init.sh /init.sh
entrypoint /init.sh