mirror of
https://github.com/openfaas/faas.git
synced 2025-06-16 12:16:47 +00:00
15 lines
358 B
Docker
15 lines
358 B
Docker
FROM alexellis2/go-armhf:1.7.4
|
|
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 types types
|
|
|
|
#RUN go get -d -v
|
|
|
|
RUN go test
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o watchdog .
|