mirror of
https://github.com/openfaas/faas.git
synced 2025-06-26 00:33:25 +00:00
18 lines
577 B
Docker
18 lines
577 B
Docker
FROM golang:1.7.5
|
|
RUN mkdir -p /go/src/github.com/alexellis/faas/watchdog
|
|
WORKDIR /go/src/github.com/alexellis/faas/watchdog
|
|
|
|
COPY main.go .
|
|
COPY readconfig.go .
|
|
COPY config_test.go .
|
|
COPY requesthandler_test.go .
|
|
COPY fastForkRequestHandler.go .
|
|
COPY requestHandler.go .
|
|
COPY types types
|
|
|
|
RUN go test
|
|
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o watchdog . \
|
|
&& GOARM=6 GOARCH=arm CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o watchdog-armhf . \
|
|
&& GOOS=windows CGO_ENABLED=0 go build -a -installsuffix cgo -o watchdog.exe .
|