File: build.sh

package info (click to toggle)
restic 0.9.4+ds-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 26,636 kB
  • sloc: sh: 1,460; makefile: 46; python: 35
file content (11 lines) | stat: -rwxr-xr-x 327 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

set -e

echo "Build binary using golang docker image"
docker run --rm -ti \
    -v "`pwd`":/go/src/github.com/restic/restic \
    -w /go/src/github.com/restic/restic golang:1.11.1-alpine go run build.go

echo "Build docker image restic/restic:latest"
docker build --rm -t restic/restic:latest -f docker/Dockerfile .