Repository navigation
Expand file tree
/
Copy pathContainerfile.pkg
More file actions
50 lines (41 loc) · 1.89 KB
/
Copy pathContainerfile.pkg
File metadata and controls
50 lines (41 loc) · 1.89 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
# --------------------------------------------------------------------------
# THIS FILE IS AUTOGENERATED - DO NOT EDIT MANUALLY
#
# Source: Containerfile.pkg.j2
# --------------------------------------------------------------------------
ARG BASE_VERSION=15.1
FROM ghcr.io/daemonless/base-exec:${BASE_VERSION}
ARG FREEBSD_ARCH=amd64
ARG PKG_NAME="backrest"
ARG PACKAGES="backrest rclone restic ca_root_nss"
# --- Metadata (Injected by Generator) ---
LABEL org.opencontainers.image.title="Backrest" \
org.opencontainers.image.description="Backrest is a web-accessible backup solution built on top of restic. Backrest provides a WebUI which wraps the restic CLI and makes it easy to create repos, browse snapshots, and restore files. Additionally, Backrest can run in the background and take an opinionated approach to scheduling snapshots and orchestrating repo health operations." \
org.opencontainers.image.source="https://github.com/daemonless/backrest" \
org.opencontainers.image.url="https://garethgeorge.github.io/backrest" \
org.opencontainers.image.licenses="GPL-3.0-only" \
org.opencontainers.image.vendor="daemonless" \
org.opencontainers.image.authors="daemonless" \
io.daemonless.category="Utilities" \
io.daemonless.port="9898" \
io.daemonless.arch="${FREEBSD_ARCH}" \
io.daemonless.pkg-source="pkg" \
io.daemonless.packages="${PACKAGES}" \
io.daemonless.pkg-name="${PKG_NAME}"
# Install backrest and dependencies
RUN pkg update && \
pkg install -y ${PACKAGES} && \
mkdir -p /app && \
pkg query '%v' ${PKG_NAME} > /app/version && \
pkg clean -ay && \
rm -rf /var/cache/pkg/* /var/db/pkg/repos/*
# Copy root filesystem
COPY root/ /
RUN chmod +x /daemonless/libexec/backrest /daemonless/init.d/*
CMD ["/daemonless/libexec/backrest"]
# Set permissions
RUN chmod +x /healthz
# Expose
EXPOSE 9898
# Volumes
VOLUME /config /data