added cors

This commit is contained in:
2017-04-10 20:03:17 +01:00
parent cae49d6443
commit 1c28a8e932
2 changed files with 23 additions and 2 deletions
+2 -1
View File
@@ -1,11 +1,12 @@
BINARY=vault
VERSION=test
CONTAINER_PORT=-p 7007:7014
ENV=-e VAULT_APP_URL=vault.app
build:
docker run --rm -v ${PWD}:/go/src/app -w /go/src/app -e GOOS=linux -e GOARCH=386 sipsynergy/go-builder /bin/sh -c "godep get && godep go build"
docker build -t ${BINARY}:${VERSION} .
start:
docker run -d ${CONTAINER_PORT} --name ${BINARY} ${BINARY}:${VERSION}
docker run -e ${ENV} -d ${CONTAINER_PORT} --name ${BINARY} ${BINARY}:${VERSION}
stop:
docker stop ${BINARY} && docker rm ${BINARY}