mirror of
https://github.com/openfaas/faas.git
synced 2025-06-20 13:06:40 +00:00
@ -10,6 +10,9 @@ COPY requesthandler_test.go .
|
|||||||
#COPY requestHandler.go .
|
#COPY requestHandler.go .
|
||||||
COPY types types
|
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
|
RUN go test
|
||||||
|
|
||||||
# Stripping via -ldflags "-s -w"
|
# Stripping via -ldflags "-s -w"
|
||||||
|
@ -11,9 +11,10 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
docker create --name buildoutput functions/watchdog:build echo
|
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-armhf ./fwatchdog-armhf
|
||||||
docker cp buildoutput:/go/src/github.com/alexellis/faas/watchdog/watchdog.exe ./fwatchdog.exe
|
docker cp buildoutput:/go/src/github.com/alexellis/faas/watchdog/watchdog.exe ./fwatchdog.exe
|
||||||
|
|
||||||
docker rm buildoutput
|
docker rm buildoutput
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user