Skip to content

Commit 67fd00b

Browse files
committed
Reduce the number of layers.
1 parent b5019c4 commit 67fd00b

File tree

1 file changed

+23
-22
lines changed

1 file changed

+23
-22
lines changed

Dockerfile

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ FROM debian:jessie
22

33
MAINTAINER Werner Beroux <[email protected]>
44

5+
# Notes:
6+
# - libaa-bin is aafire
7+
# - perl, libcurses-perl and make are used to run asciiquarium for example.
8+
# - curl, watch, imagemagick, vlc and youtube-dl are just useful for so many of those commands.
9+
510
RUN apt-get update \
611
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
712
aview \
@@ -27,40 +32,36 @@ RUN apt-get update \
2732
vlc \
2833
watch \
2934
xaos \
30-
&& apt-get clean \
31-
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
3235

33-
# Install lolcat and youtube-dl
34-
RUN echo "deb http://http.us.debian.org/debian sid main non-free contrib" >> /etc/apt/sources.list
35-
RUN apt-get update \
36+
&& echo "Install lolcat and youtube-dl" \
37+
&& echo "deb http://http.us.debian.org/debian sid main non-free contrib" >> /etc/apt/sources.list \
38+
&& apt-get update \
3639
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
3740
lolcat \
3841
youtube-dl \
39-
&& apt-get clean \
40-
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
4142

42-
# Notes:
43-
# - libaa-bin is aafire
44-
# - perl, libcurses-perl and make are used to run asciiquarium for example.
45-
# - curl, watch, imagemagick, vlc and youtube-dl are just useful for so many of those commands.
46-
47-
# Install asciiquarium
48-
RUN cpan -i Term::Animation \
43+
&& echo "Install asciiquarium" \
44+
&& cpan -i Term::Animation \
4945
&& curl -L http://www.robobunny.com/projects/asciiquarium/asciiquarium.tar.gz -o asciiquarium.tar.gz \
5046
&& tar -zxvf asciiquarium.tar.gz asciiquarium_1.1/asciiquarium \
5147
&& cp asciiquarium_1.1/asciiquarium /usr/local/bin \
5248
&& chmod 0755 /usr/local/bin/asciiquarium \
53-
&& rm -rf asciiquarium_1.1 asciiquarium.tar.gz
49+
&& rm -rf asciiquarium_1.1 asciiquarium.tar.gz \
50+
51+
&& echo "Install Falling Hearts" \
52+
&& curl -L https://yjl.googlecode.com/hg/Bash/falling-%3C3s.sh -o /usr/local/bin/falling-hearts \
53+
&& chmod +x /usr/local/bin/falling-hearts \
5454

55-
# Install Falling Hearts
56-
RUN curl -L https://yjl.googlecode.com/hg/Bash/falling-%3C3s.sh -o /usr/local/bin/falling-hearts \
57-
&& chmod +x /usr/local/bin/falling-hearts
55+
&& echo "Install pipes" \
56+
&& curl -L https://gist.githubusercontent.com/livibetter/4689307/raw/949e43fe2962c2c97c8b1d974ff93dd053d9bd37/pipes.sh -o /usr/local/bin/pipes \
57+
&& chmod +x /usr/local/bin/pipes \
58+
59+
&& echo "Clean-up" \
60+
&& apt-get clean \
61+
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
5862

59-
# Install pipes
60-
RUN curl -L https://gist.githubusercontent.com/livibetter/4689307/raw/949e43fe2962c2c97c8b1d974ff93dd053d9bd37/pipes.sh -o /usr/local/bin/pipes \
61-
&& chmod +x /usr/local/bin/pipes
63+
&& useradd --uid 666 -m --shell /usr/sbin/nologin john
6264

63-
RUN useradd --uid 666 -m --shell /usr/sbin/nologin john
6465
USER john
6566

6667
# Include /usr/games in PATH

0 commit comments

Comments
 (0)