forked from Tecnativa/docker-duplicity
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (31 loc) · 1.24 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
FROM alpine:3 as duplicity
ARG version="0.8.18"
ARG git_sha=""
LABEL org.label-schema.schema-version="1.0" \
org.label-schema.vendor="tmorin" \
org.label-schema.license="MIT" \
org.label-schema.vcs-ref="$git_sha" \
org.label-schema.vcs-url="https://github.com/tmorin/docker-image-duplicity"
ENV PASSPHRASE="passphrase"
# install runtime dependencies
RUN apk add --no-cache bash python3 py3-boto gnupg ncftp py3-fasteners py3-future librsync \
# install build dependencies
&& apk add --no-cache --virtual .build \
build-base python3-dev py3-future py3-pip py3-setuptools librsync-dev gettext py3-setuptools_scm \
# build duplicity
&& pip3 install --no-cache-dir \
# install basic libraries
https://launchpad.net/duplicity/$(echo ${version} | sed -r 's/^([0-9]+\.[0-9]+)([0-9\.]*)$/\1/')-series/${version}/+download/duplicity-${version}.tar.gz \
# clean build stuff
&& apk del .build
COPY /rootfs /
WORKDIR /workdir
ENTRYPOINT [ "/entrypoint.sh" ]
FROM duplicity as docker
RUN apk add --no-cache docker
FROM duplicity as mariadb
RUN apk add --no-cache mariadb-client
FROM duplicity as mysql
RUN apk add --no-cache mysql-client
FROM duplicity as postgresql
RUN apk add --no-cache postgresql-client