-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
32 lines (25 loc) · 933 Bytes
/
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
FROM debian:jessie
MAINTAINER Kibatic <system [at] kibatic.com>
RUN apt-get update && \
apt-get install -y --no-install-recommends \
ca-certificates \
supervisor \
wget \
mysql-client \
cron \
&& apt-get clean \
&& rm -r /var/lib/apt/lists/*
ENV DOCKER_GEN_VERSION 0.7.3
RUN wget https://github.com/jwilder/docker-gen/releases/download/$DOCKER_GEN_VERSION/docker-gen-linux-amd64-$DOCKER_GEN_VERSION.tar.gz \
&& tar -C /usr/local/bin -xvzf docker-gen-linux-amd64-$DOCKER_GEN_VERSION.tar.gz \
&& rm /docker-gen-linux-amd64-$DOCKER_GEN_VERSION.tar.gz
RUN mkdir /backup
VOLUME ["/backup"]
ENV CRON_TIME="0 0 * * *"
ADD backup-scripts/ /backup-scripts
VOLUME ["/backup-scripts"]
ENV DOCKER_HOST unix:///tmp/docker.sock
COPY docker-entrypoint.sh /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]
COPY config/supervisord/conf.d /etc/supervisor/conf.d
CMD ["/usr/bin/supervisord", "-n"]