Lucas Roesler 156103e2db Update the sample functions
**What**
- Move the new secrets sample function to ApiKeyProtected-Secrets
- Bring back the original ApiKeyProtected sample function

Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
2017-12-16 16:08:52 +00:00

24 lines
469 B
Docker

FROM golang:1.7.5 as builder
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 .
FROM alpine:latest
WORKDIR /root/
EXPOSE 8080
ENV http_proxy ""
ENV https_proxy ""
ADD https://github.com/alexellis/faas/releases/download/0.6.6d/fwatchdog /usr/bin
RUN chmod +x /usr/bin/fwatchdog
COPY --from=builder /go/src/app/app .
ENV fprocess="/root/app"
CMD ["fwatchdog"]