mirror of
https://github.com/openfaas/faas.git
synced 2025-06-08 16:26:47 +00:00
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:
parent
932d4449cb
commit
fbcec74fd4
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user