mirror of
https://github.com/openfaas/faas.git
synced 2025-06-18 03:56:37 +00:00
Add Golang hello-world sample, rename build.sh to match auto-build on Hub.
This commit is contained in:
17
sample-functions/BaseFunctions/golang/Dockerfile
Normal file
17
sample-functions/BaseFunctions/golang/Dockerfile
Normal file
@ -0,0 +1,17 @@
|
||||
FROM golang:1.7.5-alpine
|
||||
|
||||
MAINTAINER alexellis2@gmail.com
|
||||
ENTRYPOINT []
|
||||
|
||||
WORKDIR /go/src/github.com/alexellis/faas/sample-functions/golang
|
||||
COPY . /go/src/github.com/alexellis/faas/sample-functions/golang
|
||||
|
||||
RUN go install
|
||||
|
||||
ADD https://github.com/alexellis/faas/releases/download/v0.5-alpha/fwatchdog /usr/bin
|
||||
RUN chmod +x /usr/bin/fwatchdog
|
||||
|
||||
ENV fprocess "/go/bin/golang"
|
||||
HEALTHCHECK --interval=1s CMD [ -e /tmp/.lock ] || exit 1
|
||||
|
||||
CMD [ "/usr/bin/fwatchdog"]
|
Reference in New Issue
Block a user