-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtwitch.Dockerfile
57 lines (45 loc) · 2.23 KB
/
twitch.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
FROM ubuntu:bionic
ENV DEBIAN_FRONTEND noninteractive
RUN apt update && apt install -y \
xvfb \
ffmpeg \
irssi \
tmux \
libfuse2 \
xdotool \
sudo \
xterm \
fuse \
x11-apps
RUN apt-get install -y dbus-x11 procps psmisc x11-utils x11-xserver-utils xosd-bin
# Xfce
RUN apt-get install -y --no-install-recommends xfce4
RUN apt-get install -y gtk3-engines-xfce xfce4-notifyd
# additional Xfce goodies
RUN apt-get install -y mousepad xfce4-taskmanager xfce4-terminal
# includes GTK3 broadway support for HTML5 web applications
RUN apt-get install -y --no-install-recommends libgtk-3-bin
# additional Xfce panel plugins
RUN apt-get install -y --no-install-recommends xfce4-battery-plugin \
xfce4-clipman-plugin xfce4-cpugraph-plugin xfce4-datetime-plugin \
xfce4-netload-plugin xfce4-notes-plugin xfce4-places-plugin \
xfce4-sensors-plugin xfce4-systemload-plugin \
xfce4-whiskermenu-plugin xfce4-indicator-plugin \
xfce4-cpufreq-plugin xfce4-diskperf-plugin xfce4-fsguard-plugin \
xfce4-genmon-plugin xfce4-smartbookmark-plugin xfce4-timer-plugin \
xfce4-verve-plugin xfce4-weather-plugin
ADD irssi_config /home/user/.irssi/config
ENV DISPLAY ":99"
RUN echo '#! /bin/sh\n\
sed -i"" "s,%TWITCH_OAUTH%%,${TWITCH_OAUTH},g" /home/user/.irssi/config\n\
Xvfb ${DISPLAY} -pixdepths 24 32 -listen tcp -ac -screen 0 1920x1080x24\n\
[ -n "$HOME" ] && [ ! -e "$HOME/.config" ] && cp -R /etc/skel/. $HOME/ \n\
exec $*\n\
' > /usr/local/bin/start
#xterm -g 600x50+0+350 -T chat -e sh -c 'tmux attach -t irssi'
RUN useradd -ms /bin/bash -u 1000 user && \
echo "user ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/default
ADD /xfce-config.tgz /home/user/.config/xfce4
ENV IRSSI_CONFIG "/home/user/.config/Unknown Organization/silverkey.conf"
COPY ./silverkey.conf $IRSSI_CONFIG
RUN chmod +x /usr/local/bin/start