-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.aarch64
More file actions
64 lines (59 loc) · 1.59 KB
/
Dockerfile.aarch64
File metadata and controls
64 lines (59 loc) · 1.59 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
FROM ghcr.io/imagegenius/baseimage-alpine:arm64v8-edge
# set version label
ARG BUILD_DATE
ARG VERSION
ARG KOPIA_VERSION
LABEL build_version="ImageGenius Version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="hydazz"
# environment settings
ENV KOPIA_CONFIG_PATH=/config/repository.config \
KOPIA_LOG_DIR=/config/log \
KOPIA_CACHE_DIRECTORY=/cache \
RCLONE_CONFIG=/config/rclone.conf \
KOPIA_PERSIST_CREDENTIALS_ON_CONNECT=true \
KOPIA_CHECK_FOR_UPDATES=false
RUN \
echo "**** install build packages ****" && \
apk add --no-cache --virtual=build-dependencies \
go \
make && \
echo "**** install runtime packages ****" && \
apk add --no-cache \
apache2-utils \
docker-cli \
findutils \
fuse \
openssl \
rclone \
sqlite && \
echo "**** download kopia ****" && \
mkdir -p \
/tmp/kopia && \
if [ -z ${KOPIA_VERSION} ]; then \
KOPIA_VERSION=$(curl -sL https://api.github.com/repos/kopia/kopia/releases/latest | \
jq -r '.tag_name'); \
fi && \
curl -o \
/tmp/kopia.tar.gz -L \
"https://github.com/kopia/kopia/archive/${KOPIA_VERSION}/kopia-${KOPIA_VERSION}.tar.gz" && \
tar xf \
/tmp/kopia.tar.gz -C \
/tmp/kopia --strip-components=1 && \
echo "**** install kopia ****" && \
cd /tmp/kopia && \
make install && \
mv \
/root/go/bin/kopia \
/usr/local/bin/kopia && \
echo "**** cleanup ****" && \
apk del --purge \
build-dependencies && \
rm -rf \
/tmp/* \
/root/go/ \
/root/.cache
# copy local files
COPY root/ /
# ports and volumes
EXPOSE 51515
VOLUME /config /source /backups /cache