mirror of
https://github.com/lobaro/restic-backup-docker.git
synced 2026-04-03 11:48:51 +00:00
[FIX] get root cert into the busybox
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
FROM alpine as certs
|
||||
RUN apk update && apk add ca-certificates
|
||||
|
||||
|
||||
FROM busybox:glibc
|
||||
|
||||
COPY --from=certs /etc/ssl/certs /etc/ssl/certs
|
||||
|
||||
# Get restic executable
|
||||
ENV RESTIC_VERION=0.8.1
|
||||
ADD https://github.com/restic/restic/releases/download/v${RESTIC_VERION}/restic_${RESTIC_VERION}_linux_amd64.bz2 /
|
||||
|
||||
6
entry.sh
6
entry.sh
@@ -3,6 +3,12 @@ set -e
|
||||
|
||||
echo "Starting container ..."
|
||||
|
||||
RESTIC_CMD=restic
|
||||
|
||||
if [ -n "${ROOT_CERT}" ]; then
|
||||
RESTIC_CMD="${RESTIC_CMD} --cert ${ROOT_CERT}"
|
||||
fi
|
||||
|
||||
if [ -n "${NFS_TARGET}" ]; then
|
||||
echo "Mounting NFS based on NFS_TARGET: ${NFS_TARGET}"
|
||||
mount -o nolock -v ${NFS_TARGET} /mnt/restic
|
||||
|
||||
Reference in New Issue
Block a user