whoops
This commit is contained in:
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 $@
|
||||||
|
|||||||
Reference in New Issue
Block a user