forked from realies/soulseek-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (42 loc) · 2.42 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
FROM ubuntu:latest
COPY ui.patch /tmp
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive \
apt-get install -y binutils ca-certificates curl dbus fonts-noto-cjk locales openbox patch supervisor tigervnc-standalone-server tigervnc-tools tzdata --no-install-recommends && \
dbus-uuidgen > /etc/machine-id && \
locale-gen en_US.UTF-8 && \
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://site-assets.fontawesome.com/releases/v6.0.0/svgs/solid/cloud-arrow-down.svg -o /usr/share/novnc/app/images/downloads.svg && \
curl -fL# https://site-assets.fontawesome.com/releases/v6.0.0/svgs/solid/folder-music.svg -o /usr/share/novnc/app/images/shared.svg && \
curl -fL# https://site-assets.fontawesome.com/releases/v6.0.0/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,shared}.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 /app/soulseek.png /usr/share/novnc/app/images/soulseek.png && \
ln -s /data/Soulseek\ Downloads /usr/share/novnc/downloads && \
ln -s /data/Soulseek\ Shared\ Folder /usr/share/novnc/shared && \
ln -s /data/Soulseek\ Chat\ Logs /usr/share/novnc/logs && \
curl -fL# https://www.slsknet.org/SoulseekQt/Linux/SoulseekQt-2018-1-30-64bit-appimage.tgz -o /tmp/soulseek.tgz && \
tar -xvzf /tmp/soulseek.tgz -C /tmp && \
/tmp/SoulseekQt-2018-1-30-64bit.AppImage --appimage-extract && \
mv /squashfs-root /app && \
strip /app/SoulseekQt && \
useradd -u 1000 -U -d /data -s /bin/false soulseek && \
usermod -G users soulseek && \
mkdir /data && \
apt-get purge -y binutils curl dbus patch && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ENV LANG=en_US.UTF-8 \
LANGUAGE=en_US:en \
LC_ALL=en_US.UTF-8 \
XDG_RUNTIME_DIR=/data
COPY etc /etc
COPY usr /usr
COPY init.sh /init.sh
ENTRYPOINT ["/init.sh"]