File tree Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Original file line number Diff line number Diff line change 44# http://github.com/marclennox/docker-images/backup-service
55#
66
7- # Pull base image.
8- FROM debian:wheezy
7+ # Use phusion/baseimage as base image. To make your builds reproducible, make
8+ # sure you lock down to a specific version, not to `latest`!
9+ # See https://github.com/phusion/baseimage-docker/blob/master/Changelog.md for
10+ # a list of version numbers.
11+ FROM phusion/baseimage:latest
912
1013MAINTAINER Marc Lennox <
[email protected] >
1114
1215# Set environment.
1316ENV DEBIAN_FRONTEND noninteractive
1417
18+ # Regenerate SSH host keys. baseimage-docker does not contain any, so you
19+ # have to do that yourself. You may also comment out this instruction; the
20+ # init system will auto-generate one during boot.
21+ RUN /etc/my_init.d/00_regen_ssh_host_keys.sh
22+
23+ # Remove OS cron jobs
24+ RUN rm -f /etc/cron.daily/*
25+
1526# Install base packages.
1627RUN apt-get update
1728RUN apt-get -y install \
1829 build-essential \
19- cron \
2030 curl \
2131 git-core \
2232 libcurl4-openssl-dev \
@@ -30,7 +40,6 @@ RUN apt-get -y install \
3040 sqlite3 \
3141 wget \
3242 zlib1g-dev
33- RUN rm -f /etc/cron.daily/*
3443
3544# Add postgresql client from official source.
3645RUN \
4655 tar -xzvf redis-*.tar.gz && \
4756 rm -f redis-*.tar.gz && \
4857 cd redis-* && \
49- make redis-cli && \
50- make install redis-cli && \
58+ make && \
59+ make install && \
5160 cd .. && \
5261 rm -rf redis-*
5362
@@ -77,3 +86,6 @@ WORKDIR /data
7786
7887# Define mountable directories.
7988VOLUME ["/data" ]
89+
90+ # Use baseimage-docker's init system.
91+ CMD ["/sbin/my_init" ]
You can’t perform that action at this time.
0 commit comments