mirror of
https://github.com/openfaas/faas.git
synced 2025-06-18 12:06:37 +00:00
Make webhookstash a static binary
This commit is contained in:
9
sample-functions/WebhookStash/Dockerfile.build
Normal file
9
sample-functions/WebhookStash/Dockerfile.build
Normal file
@ -0,0 +1,9 @@
|
||||
FROM golang:1.7.5
|
||||
|
||||
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 .
|
||||
|
||||
CMD ["/bin/true"]
|
Reference in New Issue
Block a user