-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
44 lines (38 loc) · 1.52 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
FROM phusion/baseimage:latest
ARG DEBUG=false
ENV DEBUG=${DEBUG:-false}
ENV DEBIAN_FRONTEND="teletype" TERM="xterm-color" LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
ARG DEBIAN_FRONTEND="noninteractive"
COPY excludes /etc/dpkg/dpkg.cfg.d/excludes
RUN packages="curl wget ca-certificates libssl1.0.0 vim" && \
printf 'APT::Get::Assume-Yes "true";\nAPT::Install-Recommends "false";\nAPT::Get::Install-Suggests "false";\n' > /etc/apt/apt.conf.d/99defaults && \
apt-get update && \
apt-get upgrade && \
apt-get remove vim-tiny && \
apt-get install ${packages} && \
curl -L https://iterm2.com/misc/install_shell_integration_and_utilities.sh | /bin/bash && \
apt-get autoremove && \
apt-get clean && \
locale-gen en_US.UTF-8 && \
update-locale LANG=en_US.UTF-8 && \
tar -czf /usr/share/copyrights.tar.gz /usr/share/common-licenses /usr/share/doc/*/copyright && \
rm -rf \
/usr/share/doc \
/usr/share/man \
/usr/share/info \
/tmp/* \
/var/tmp/* \
/var/lib/apt/lists/* \
/var/log/* \
/var/cache/debconf/* \
/usr/share/common-licenses* \
/etc/systemd \
/lib/lsb \
/lib/udev \
/usr/lib/x86_64-linux-gnu/gconv/IBM* \
/usr/lib/x86_64-linux-gnu/gconv/EBC* && \
mkdir -p /usr/share/man/man1 /usr/share/man/man2 \
/usr/share/man/man3 /usr/share/man/man4 \
/usr/share/man/man5 /usr/share/man/man6 \
/usr/share/man/man7 /usr/share/man/man8
CMD ["/sbin/my_init"]