<commit_before>FROM golang:1.11-alpine as builder
ENV CGO_ENABLED=0

MAINTAINER <EMAIL>
ENTRYPOINT []

WORKDIR /go/src/github.com/openfaas/faas/sample-functions/MarkdownRender

COPY handler.go .
COPY vendor vendor

RUN go install

FROM functions/alpine:latest

# Needed to reach the hub
RUN apk --no-cache add ca-certificates 

COPY --from=builder /go/bin/MarkdownRender  /usr/bin/MarkdownRender
ENV fprocess "/usr/bin/MarkdownRender"

CMD ["/usr/bin/fwatchdog"]<commit_msg>Update MarkdownRender sample-function to use new approach<commit_after>FROM openfaas/classic-watchdog:0.14.4 as watchdog

FROM golang:1.11-alpine as builder
ENV CGO_ENABLED=0

MAINTAINER <EMAIL>
ENTRYPOINT []

WORKDIR /go/src/github.com/openfaas/faas/sample-functions/MarkdownRender

COPY handler.go .
COPY vendor vendor

RUN go install

FROM alpine:3.10

COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
RUN chmod +x /usr/bin/fwatchdog

COPY --from=builder /go/bin/MarkdownRender  /usr/bin/MarkdownRender
ENV fprocess "/usr/bin/MarkdownRender"

CMD ["/usr/bin/fwatchdog"]
{'fraction_non_alphanumeric': 0.10687022900763359, 'fraction_numerical': 0.01431297709923664, 'mean_word_length': 4.639784946236559, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7475808', 'n_tokens_mistral': 392, 'n_tokens_neox': 377, 'n_words': 87}