mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
12 lines
332 B
Bash
Executable File
12 lines
332 B
Bash
Executable File
#!/bin/bash
|
|
set -ex
|
|
|
|
FUNCPKG=$(pwd | sed "s|$GOPATH/src/||")
|
|
|
|
# glide image to install dependencies
|
|
../build-glide.sh
|
|
docker run --rm -v "$PWD":/go/src/$FUNCPKG -w /go/src/$FUNCPKG glide up
|
|
|
|
# build image
|
|
docker run --rm -v "$PWD":/go/src/$FUNCPKG -w /go/src/$FUNCPKG iron/go:dev go build -o func
|
|
docker build -t iron/func-twitter . |