mirror of
https://github.com/openfaas/faas.git
synced 2025-06-19 04:26:35 +00:00
@ -1,4 +1,4 @@
|
|||||||
FROM golang:1.7.5
|
FROM golang:1.7.5 as build
|
||||||
WORKDIR /go/src/github.com/alexellis/faas/gateway
|
WORKDIR /go/src/github.com/alexellis/faas/gateway
|
||||||
|
|
||||||
COPY vendor vendor
|
COPY vendor vendor
|
||||||
@ -22,7 +22,7 @@ EXPOSE 8080
|
|||||||
ENV http_proxy ""
|
ENV http_proxy ""
|
||||||
ENV https_proxy ""
|
ENV https_proxy ""
|
||||||
|
|
||||||
COPY --from=0 /go/src/github.com/alexellis/faas/gateway/gateway .
|
COPY --from=build /go/src/github.com/alexellis/faas/gateway/gateway .
|
||||||
|
|
||||||
COPY assets assets
|
COPY assets assets
|
||||||
|
|
||||||
|
@ -1,7 +1,14 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
export TAG="latest-dev"
|
export eTAG="latest-dev"
|
||||||
echo Building functions/gateway:$TAG
|
echo $1
|
||||||
|
if [ $1 ] ; then
|
||||||
|
echo "set this"
|
||||||
|
eTAG=$1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo Building functions/gateway:$eTAG
|
||||||
|
|
||||||
docker build --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy \
|
docker build --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy \
|
||||||
-t functions/gateway:$TAG .
|
-t functions/gateway:$eTAG .
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user