-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (29 loc) · 1.29 KB
/
Dockerfile
File metadata and controls
38 lines (29 loc) · 1.29 KB
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
## Version 1.0.4
FROM fortytwoio/debian:latest
MAINTAINER Thomas Fritz <thomas.fritz@forty-two.io>
RUN DEBIAN_FRONTEND=noninteractive apt-get update -qqy > /dev/null 2>&1
# You do not have to do this in your Dockerfiles anymore :). Just convenience
ONBUILD RUN DEBIAN_FRONTEND=noninteractive apt-get update -qqy > /dev/null 2>&1
# Common used and rarely changing package dependencies. locales package will also dpkg-reconfigure locales.
RUN DEBIAN_FRONTEND=noninteractive apt-get install -qqy --no-install-recommends \
socat \
supervisor \
unzip \
> /dev/null 2>&1
# We want to add the local ./bin dir to /usr/local/bin in Docker container / images extending from this image.
ONBUILD ADD ./bin/ /usr/local/bin/
ONBUILD ADD ./etc/supervisor-conf.d/ /etc/supervisor/conf.d/
# Ports used by Serf for node discovery and cluster managment
EXPOSE 7373 7946
VOLUME ["/var/log"]
CMD ["/usr/bin/env", "init.sh"]
# Downloading, unpacking and moving in $PATH of serf binary
ADD https://dl.bintray.com/mitchellh/serf/0.6.3_linux_amd64.zip /tmp/serf.zip
RUN cd /tmp && \
unzip /tmp/serf.zip && \
mv /tmp/serf /usr/local/bin
# We add the local ./bin dir to /usr/local/bin.
ADD ./bin/ /usr/local/bin/
ADD ./etc/supervisor-conf.d/ /etc/supervisor/conf.d/
RUN rm -rf /tmp/* && \
rm -rf /var/tmp/*