git » homepage.git » master » tree

[master] / OUT / HomePhotos / Dockerfile

FROM python:3-alpine

ARG DUPLICITY_URL="https://launchpad.net/duplicity/0.8-series/0.8.20/+download/duplicity-0.8.20.tar.gz"

ENV SRC='/mnt/backup/src' \
    MANPATH='MANPATH=/usr/local/share/man' \
    PAGER='less'

COPY requirements.txt /tmp/

# Mixed Dev and Runtime dependencies
RUN apk add --no-cache \
        build-base \
        ca-certificates \
        gettext \
        libffi-dev \
        librsync-dev \
        gnupg \
        mandoc \
        openssl-dev \
        tzdata \
        musl-dev \
        python3-dev \
        libffi-dev \
        openssl-dev \
        libxml2-dev \
        libxslt-dev \
        cargo \
    && pip install -r /tmp/requirements.txt \
       $DUPLICITY_URL \
    && rm /tmp/requirements.txt

# Cache and GPG key
VOLUME [ "/root" ]
WORKDIR /root
CMD ["duplicity"]