restic/docker/build.sh

16 lines
301 B
Bash
Raw Normal View History

2017-06-23 04:26:51 -04:00
#!/bin/sh
root="$(readlink -f "$0")"
root="$(dirname "$(dirname "${root}")")"
2017-06-23 04:26:51 -04:00
set -e
2021-09-20 08:18:48 -04:00
export DOCKER_BUILDKIT=${DOCKER_BUILDKIT-1}
2017-06-23 04:26:51 -04:00
echo "Build docker image restic/restic:latest"
2021-09-20 08:18:48 -04:00
docker build \
--rm \
--pull \
--file "${root}"/docker/Dockerfile \
2021-09-20 08:18:48 -04:00
--tag restic/restic:latest \
"${root}" "$@"