mirror of
https://github.com/openfaas/faas.git
synced 2025-06-09 00:36:46 +00:00
12 lines
254 B
Docker
12 lines
254 B
Docker
FROM golang:1.7.3
|
|
RUN mkdir -p /go/src/app
|
|
COPY handler.go /go/src/app
|
|
WORKDIR /go/src/app
|
|
RUN go get -d -v
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .
|
|
|
|
COPY fwatchdog /usr/bin/
|
|
|
|
ENV fprocess="/go/src/app/app"
|
|
CMD ["fwatchdog"]
|