forked from continuouspipe/dockerfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
40 lines (33 loc) · 1.04 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
FROM ubuntu:16.04
MAINTAINER Kieren Evans <[email protected]>
RUN echo 'APT::Install-Recommends 0;' >> /etc/apt/apt.conf.d/01norecommends \
&& echo 'APT::Install-Suggests 0;' >> /etc/apt/apt.conf.d/01norecommends \
&& apt-get update -qq \
&& DEBIAN_FRONTEND=noninteractive apt-get -s dist-upgrade | grep "^Inst" | \
grep -i securi | awk -F " " {'print $2'} | \
xargs apt-get install -qqy \
# Install base packages
&& DEBIAN_FRONTEND=noninteractive apt-get -yq install \
apt-transport-https \
ca-certificates \
daemontools \
cron \
curl \
git \
net-tools \
sudo \
supervisor \
unzip \
vim.tiny \
wget \
# Clean the image
&& apt-get auto-remove -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
# Install confd for templating
&& curl -sSL -o /usr/local/bin/confd \
https://github.com/kelseyhightower/confd/releases/download/v0.11.0/confd-0.11.0-linux-amd64 \
&& chmod +x /usr/local/bin/confd
COPY ./etc/ /etc/
COPY ./usr/ /usr/
CMD ["/usr/local/bin/supervisor_start"]