forked from wernight/docker-funbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
79 lines (64 loc) · 2.29 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
FROM debian:jessie
MAINTAINER Werner Beroux <[email protected]>
# Notes:
# - libaa-bin is aafire
# - perl, libcurses-perl and make are used to run asciiquarium for example.
# - curl, watch, imagemagick, vlc and youtube-dl are just useful for so many of those commands.
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
aview \
bb \
binclock \
boxes \
caca-utils \
cmatrix \
cowsay \
curl \
figlet \
fortune \
imagemagick \
libaa-bin \
libcurses-perl \
linuxlogo \
make \
nyancat \
perl \
rig \
sl \
toilet \
vlc \
watch \
xaos \
&& echo "Install lolcat and youtube-dl" \
&& echo "deb http://http.us.debian.org/debian sid main non-free contrib" >> /etc/apt/sources.list \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
lolcat \
youtube-dl \
&& echo "Install asciiquarium" \
&& cpan -i Term::Animation \
&& curl -L http://www.robobunny.com/projects/asciiquarium/asciiquarium.tar.gz -o asciiquarium.tar.gz \
&& tar -zxvf asciiquarium.tar.gz asciiquarium_1.1/asciiquarium \
&& cp asciiquarium_1.1/asciiquarium /usr/local/bin \
&& chmod 0755 /usr/local/bin/asciiquarium \
&& rm -rf asciiquarium_1.1 asciiquarium.tar.gz \
&& echo "Install Falling Hearts" \
&& curl -L https://yjl.googlecode.com/hg/Bash/falling-%3C3s.sh -o /usr/local/bin/falling-hearts \
&& chmod +x /usr/local/bin/falling-hearts \
&& echo "Install pipes" \
&& curl -L https://gist.githubusercontent.com/livibetter/4689307/raw/949e43fe2962c2c97c8b1d974ff93dd053d9bd37/pipes.sh -o /usr/local/bin/pipes \
&& chmod +x /usr/local/bin/pipes \
&& echo "Clean-up" \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& useradd --uid 666 -m --shell /usr/sbin/nologin john
USER john
# Include /usr/games in PATH
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
# We support 256color, right? If not, you can always change this environment variable.
ENV TERM=xterm-256color
# youtube helper script
ADD youtube /usr/local/bin/youtube
ADD examples /examples
ADD menu.sh /
CMD ["/menu.sh"]