Make webhookstash a static binary

This commit is contained in:
Alex Ellis
2017-04-13 22:58:32 +01:00
parent 2575ef407d
commit ee95e272cc
6 changed files with 32 additions and 15 deletions

View File

@ -1,3 +1,10 @@
#!/bin/bash
#!/bin/sh
echo Building functions/webhookstash:build
docker build -t alexellis2/faas-webhookstash .
docker build --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -t functions/webhookstash:build . -f Dockerfile.build && \
docker create --name hook_extract functions/webhookstash:build
docker cp hook_extract:/go/src/app/app ./app
docker rm -f hook_extract
echo Building functions/webhookstash:latest
docker build --no-cache -t functions/webhookstash:latest .