mirror of
https://github.com/yavook/kiwi-backup.git
synced 2024-11-21 22:43:01 +00:00
slimmer, more recent base image
This commit is contained in:
parent
eb857936c5
commit
192d3cb1ed
1 changed files with 7 additions and 11 deletions
18
Dockerfile
18
Dockerfile
|
@ -1,4 +1,4 @@
|
||||||
FROM alpine:3.12
|
FROM python:3.9-alpine
|
||||||
LABEL maintainer="jmm@yavook.de"
|
LABEL maintainer="jmm@yavook.de"
|
||||||
|
|
||||||
# Previous work: https://github.com/wernight/docker-duplicity
|
# Previous work: https://github.com/wernight/docker-duplicity
|
||||||
|
@ -8,7 +8,7 @@ RUN set -ex; \
|
||||||
# create backup source
|
# create backup source
|
||||||
mkdir -p /backup/source; \
|
mkdir -p /backup/source; \
|
||||||
\
|
\
|
||||||
apk add --no-cache \
|
apk --no-cache add \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
gettext \
|
gettext \
|
||||||
gnupg \
|
gnupg \
|
||||||
|
@ -17,17 +17,14 @@ RUN set -ex; \
|
||||||
librsync \
|
librsync \
|
||||||
libxml2 \
|
libxml2 \
|
||||||
libxslt \
|
libxslt \
|
||||||
openssh \
|
openssh-client \
|
||||||
openssl \
|
openssl \
|
||||||
python3 \
|
|
||||||
py3-pip \
|
|
||||||
py3-six \
|
|
||||||
rsync \
|
rsync \
|
||||||
; \
|
; \
|
||||||
update-ca-certificates; \
|
update-ca-certificates; \
|
||||||
\
|
\
|
||||||
# dependencies to build python packages
|
# dependencies to build python packages
|
||||||
apk add --no-cache -t .build-deps \
|
apk --no-cache add --virtual .build-deps \
|
||||||
gcc \
|
gcc \
|
||||||
libffi-dev \
|
libffi-dev \
|
||||||
librsync-dev \
|
librsync-dev \
|
||||||
|
@ -36,13 +33,12 @@ RUN set -ex; \
|
||||||
make \
|
make \
|
||||||
musl-dev \
|
musl-dev \
|
||||||
openssl-dev \
|
openssl-dev \
|
||||||
python3-dev \
|
|
||||||
; \
|
; \
|
||||||
\
|
\
|
||||||
# make use of "wheel" python packages
|
# make use of "wheel" python packages
|
||||||
pip3 install wheel ; \
|
pip3 --no-cache-dir install wheel ; \
|
||||||
\
|
\
|
||||||
pip3 install \
|
pip3 --no-cache-dir install \
|
||||||
# main app
|
# main app
|
||||||
duplicity \
|
duplicity \
|
||||||
\
|
\
|
||||||
|
@ -74,7 +70,7 @@ RUN set -ex; \
|
||||||
; \
|
; \
|
||||||
\
|
\
|
||||||
# remove buildtime dependencies
|
# remove buildtime dependencies
|
||||||
pip3 uninstall -y wheel; \
|
pip3 --no-cache-dir uninstall -y wheel; \
|
||||||
apk del --purge .build-deps
|
apk del --purge .build-deps
|
||||||
|
|
||||||
VOLUME ["/root/.cache/duplicity", "/backup/target"]
|
VOLUME ["/root/.cache/duplicity", "/backup/target"]
|
||||||
|
|
Loading…
Reference in a new issue