whoops
parent
477b3be32c
commit
94737c4807
6
do.sh
6
do.sh
|
|
@ -146,6 +146,8 @@ echo '
|
||||||
set -e
|
set -e
|
||||||
set -u
|
set -u
|
||||||
|
|
||||||
|
go get -d ./...
|
||||||
|
|
||||||
CGO_ENABLED=0 go build -o /go/bin/exec -a -installsuffix cgo
|
CGO_ENABLED=0 go build -o /go/bin/exec -a -installsuffix cgo
|
||||||
' > "$compile"
|
' > "$compile"
|
||||||
|
|
||||||
|
|
@ -158,6 +160,8 @@ DOCKERFILE='
|
||||||
FROM '"$from"' as builder
|
FROM '"$from"' as builder
|
||||||
MAINTAINER breel@qualtrics.com
|
MAINTAINER breel@qualtrics.com
|
||||||
|
|
||||||
|
RUN apk add --no-cache git
|
||||||
|
|
||||||
WORKDIR /go/'"$thispkg"'
|
WORKDIR /go/'"$thispkg"'
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN /bin/sh '"$compile"'
|
RUN /bin/sh '"$compile"'
|
||||||
|
|
@ -181,4 +185,4 @@ ENTRYPOINT ["/main/exec"]
|
||||||
echo "$DOCKERFILE" > "$dockfile"
|
echo "$DOCKERFILE" > "$dockfile"
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main $@
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue