Skip to content

Commit 28731d5

Browse files
authored
Reduce size again.
1 parent 24ef142 commit 28731d5

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

Dockerfile

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,11 @@ FROM phusion/baseimage:0.9.22
1818
# Use baseimage-docker's init system.
1919
CMD ["/sbin/my_init"]
2020

21-
RUN apt-get update && apt-get install -y --no-install-recommends wget netbase tcpdump make && \
22-
apt-get install -s "xinetd" \
23-
| sed -n \
24-
-e "/^Inst xinetd /d" \
25-
-e 's/^Inst \([^ ]\+\) .*$/\1/p' \
26-
| xargs apt-get install -y --no-install-recommends && \
27-
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
21+
RUN apt-get update && apt-get install -y --no-install-recommends wget netbase tcpdump xinetd && \
22+
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /etc/xinetd.d/*
2823

29-
COPY --from=build-stage /opt/xinetd /opt/xinetd
24+
COPY --from=build-stage /opt/xinetd/xinetd/xinetd /usr/sbin/xinetd
3025

31-
RUN cd /opt/xinetd && make install && cd /opt && rm -fr xinetd
3226

3327
ADD xinetd.conf /etc/xinetd.conf
3428
ADD pwn.kafel /etc/pwn.kafel

0 commit comments

Comments
 (0)