mirror of
https://github.com/openfaas/faas.git
synced 2025-06-20 04:56:38 +00:00
@ -10,6 +10,9 @@ COPY requesthandler_test.go .
|
||||
#COPY requestHandler.go .
|
||||
COPY types types
|
||||
|
||||
# Run a gofmt and exclude all vendored code.
|
||||
RUN gofmt -l -d $(find . -type f -name '*.go' -not -path "./vendor/*")
|
||||
|
||||
RUN go test
|
||||
|
||||
# Stripping via -ldflags "-s -w"
|
||||
|
@ -11,9 +11,10 @@ else
|
||||
fi
|
||||
|
||||
docker create --name buildoutput functions/watchdog:build echo
|
||||
docker cp buildoutput:/go/src/github.com/alexellis/faas/watchdog/watchdog ./fwatchdog
|
||||
|
||||
docker cp buildoutput:/go/src/github.com/alexellis/faas/watchdog/watchdog ./fwatchdog
|
||||
docker cp buildoutput:/go/src/github.com/alexellis/faas/watchdog/watchdog-armhf ./fwatchdog-armhf
|
||||
docker cp buildoutput:/go/src/github.com/alexellis/faas/watchdog/watchdog.exe ./fwatchdog.exe
|
||||
|
||||
docker rm buildoutput
|
||||
|
||||
|
Reference in New Issue
Block a user