This repository was archived by the owner on Jun 15, 2025. It is now read-only.
forked from Fekide/volumerize
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
85 lines (72 loc) · 2.24 KB
/
Dockerfile
File metadata and controls
85 lines (72 loc) · 2.24 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
FROM rclone/rclone:1.69.1 AS rclone
FROM docker:28.1.1 AS docker
FROM alpine:3.21.3 AS alpine
FROM python:3.13.2 AS python
RUN python -V > .python_version
FROM ghcr.io/pumbaasdad/poetry:2025-03-30 AS poetry
RUN poetry -V > .poetry_version
FROM ghcr.io/pumbaasdad/poetry:2025-03-30
LABEL maintainer="Pumbaa's Dad <32616257+pumbaasdad@users.noreply.github.com>"
ARG JOBBER_VERSION=1.4.4
COPY --from=alpine /etc/os-release /.expected_os_release
COPY --from=python /.python_version /.expected_python_version
COPY --from=poetry /.poetry_version /.expected_poetry_version
RUN apk upgrade --update && \
apk add \
bash \
tini \
su-exec \
gzip \
gettext \
tar \
wget \
curl \
openssh \
openssl \
gcc \
glib \
gnupg \
alpine-sdk \
linux-headers \
musl-dev \
rsync \
lftp \
libffi-dev \
librsync \
librsync-dev \
libcurl && \
CFLAGS=-Wno-int-conversion pip3 install --no-cache-dir pyrax && \
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 && \
rm -rf /var/cache/apk/* && rm -rf /tmp/*
COPY poetry.lock pyproject.toml /
RUN poetry install --no-ansi && \
apk del \
alpine-sdk \
gcc \
librsync-dev \
linux-headers \
musl-dev
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"]