Skip to content

Commit 112b2f8

Browse files
committed
Changed base image to phusion baseimage
1 parent 6874d91 commit 112b2f8

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

backup-service/Dockerfile

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,29 @@
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

1013
MAINTAINER Marc Lennox <[email protected]>
1114

1215
# Set environment.
1316
ENV 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.
1627
RUN apt-get update
1728
RUN 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.
3645
RUN \
@@ -46,8 +55,8 @@ RUN \
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.
7988
VOLUME ["/data"]
89+
90+
# Use baseimage-docker's init system.
91+
CMD ["/sbin/my_init"]

0 commit comments

Comments
 (0)