Update MarkdownRender sample-function to use new approach

I used AlpineFunction as the example to follow as suggested by
    @alexellis

Signed-off-by: scott.eppler <scott.eppler@coda.global>
This commit is contained in:
scott.eppler 2019-10-08 14:16:30 -05:00 committed by Alex Ellis
parent 932d4449cb
commit fbcec74fd4

View File

@ -1,3 +1,5 @@
FROM openfaas/classic-watchdog:0.14.4 as watchdog
FROM golang:1.11-alpine as builder FROM golang:1.11-alpine as builder
ENV CGO_ENABLED=0 ENV CGO_ENABLED=0
@ -11,10 +13,10 @@ COPY vendor vendor
RUN go install RUN go install
FROM functions/alpine:latest FROM alpine:3.10
# Needed to reach the hub COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
RUN apk --no-cache add ca-certificates RUN chmod +x /usr/bin/fwatchdog
COPY --from=builder /go/bin/MarkdownRender /usr/bin/MarkdownRender COPY --from=builder /go/bin/MarkdownRender /usr/bin/MarkdownRender
ENV fprocess "/usr/bin/MarkdownRender" ENV fprocess "/usr/bin/MarkdownRender"