forked from blacklabelops/volumerize
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
106 lines (100 loc) · 2.55 KB
/
Dockerfile
File metadata and controls
106 lines (100 loc) · 2.55 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
FROM rclone/rclone:1.62.2 as rclone
FROM docker:23.0.4 as docker
FROM alpine:3.17.3
LABEL maintainer="Felix Haase <felix.haase@feki.de>"
ARG JOBBER_VERSION=1.4.4
ARG DUPLICITY_VERSION=1.2.2
RUN apk upgrade --update && \
apk add \
bash \
tzdata \
tini \
su-exec \
gzip \
gettext \
tar \
wget \
curl \
gmp-dev \
tzdata \
openssh \
openssl \
ca-certificates \
python3-dev \
gcc \
glib \
gnupg \
alpine-sdk \
linux-headers \
musl-dev \
rsync \
lftp \
py-cryptography \
libffi-dev \
librsync \
librsync-dev \
libcurl \
py3-pip && \
pip3 install --upgrade pip && \
pip3 install --no-cache-dir wheel setuptools-scm && \
pip3 install --no-cache-dir \
azure-core \
azure-storage-blob \
boto \
boto3 \
b2sdk \
boxsdk[jwt] \
dropbox \
fasteners \
gdata-python3 \
google-api-python-client>=2.2.0 \
google-auth-oauthlib \
jottalib \
mediafire \
megatools \
paramiko \
pexpect \
psutil \
PyDrive \
PyDrive2 \
pyrax \
python-swiftclient \
python-keystoneclient \
requests \
requests-oauthlib \
pycrypto \
urllib3 \
apprise \
duplicity==${DUPLICITY_VERSION} && \
mkdir -p /etc/volumerize /volumerize-cache /opt/volumerize /var/jobber/0 && \
# Install Jobber
wget --directory-prefix=/tmp https://github.com/dshearer/jobber/releases/download/v${JOBBER_VERSION}/jobber-${JOBBER_VERSION}-r0.apk && \
apk add --allow-untrusted --no-scripts /tmp/jobber-${JOBBER_VERSION}-r0.apk && \
# Cleanup
apk del \
curl \
wget \
python3-dev \
alpine-sdk \
linux-headers \
gcc \
musl-dev \
librsync-dev && \
rm -rf /var/cache/apk/* && rm -rf /tmp/*
COPY --from=rclone /usr/local/bin/rclone /usr/local/bin/rclone
COPY --from=docker /usr/local/bin/ /usr/local/bin/
ENV VOLUMERIZE_HOME=/etc/volumerize \
VOLUMERIZE_CACHE=/volumerize-cache \
VOLUMERIZE_SCRIPT_DIR=/opt/volumerize \
PATH=$PATH:/etc/volumerize \
GOOGLE_DRIVE_SETTINGS=/credentials/cred.file \
GOOGLE_DRIVE_CREDENTIAL_FILE=/credentials/googledrive.cred \
GPG_TTY=/dev/console
USER root
WORKDIR /etc/volumerize
VOLUME ["/volumerize-cache"]
COPY imagescripts/ /opt/volumerize/
COPY scripts/ /etc/volumerize/
COPY postexecute/ /postexecute
ENTRYPOINT ["/sbin/tini","--","/opt/volumerize/docker-entrypoint.sh"]
CMD ["volumerize"]