2017-06-23 08:26:51 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
echo "Build binary using golang docker image"
|
|
|
|
docker run --rm -ti \
|
2018-10-05 20:13:49 +00:00
|
|
|
-v "`pwd`":/go/src/github.com/restic/restic \
|
2020-09-20 15:42:12 +00:00
|
|
|
-w /go/src/github.com/restic/restic golang:1.15-alpine go run build.go
|
2017-06-23 08:26:51 +00:00
|
|
|
|
|
|
|
echo "Build docker image restic/restic:latest"
|
|
|
|
docker build --rm -t restic/restic:latest -f docker/Dockerfile .
|