mirror of
https://github.com/openfaas/faas.git
synced 2025-06-19 20:46:41 +00:00
Add key-protected sample
This commit is contained in:
9
sample-functions/ApiKeyProtected/Dockerfile.build
Normal file
9
sample-functions/ApiKeyProtected/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 CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .
|
||||
|
||||
CMD ["echo"]
|
||||
|
Reference in New Issue
Block a user