File tree Expand file tree Collapse file tree 4 files changed +12
-20
lines changed Expand file tree Collapse file tree 4 files changed +12
-20
lines changed Original file line number Diff line number Diff line change 1+ FROM openfaas/of-watchdog:0.5.3 as watchdog
12FROM golang:1.10.4-alpine3.8 as build
23
3- RUN apk --no-cache add curl \
4- && echo "Pulling watchdog binary from Github." \
5- && curl -sSLf https://github.com/openfaas-incubator/of-watchdog/releases/download/0.5.0/of-watchdog-armhf > /usr/bin/fwatchdog \
6- && chmod +x /usr/bin/fwatchdog \
7- && apk del curl --no-cache
4+ COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
5+ RUN chmod +x /usr/bin/fwatchdog
86
97RUN mkdir -p /go/src/handler
108WORKDIR /go/src/handler
Original file line number Diff line number Diff line change 1+ FROM openfaas/of-watchdog:0.5.3 as watchdog
12FROM golang:1.10.4-alpine3.8 as build
23
3- RUN apk --no-cache add curl \
4- && echo "Pulling watchdog binary from Github." \
5- && curl -sSLf https://github.com/openfaas-incubator/of-watchdog/releases/download/0.5.0/of-watchdog > /usr/bin/fwatchdog \
6- && chmod +x /usr/bin/fwatchdog \
7- && apk del curl --no-cache
4+ COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
5+ RUN chmod +x /usr/bin/fwatchdog
86
97RUN mkdir -p /go/src/handler
108WORKDIR /go/src/handler
Original file line number Diff line number Diff line change 1+ FROM openfaas/of-watchdog:0.5.3 as watchdog
12FROM golang:1.10.4-alpine3.8 as build
23
3- RUN apk --no-cache add curl \
4- && echo "Pulling watchdog binary from Github." \
5- && curl -sSLf https://github.com/openfaas-incubator/of-watchdog/releases/download/0.5.0/of-watchdog-armhf > /usr/bin/fwatchdog \
6- && chmod +x /usr/bin/fwatchdog \
7- && apk del curl --no-cache
4+ COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
5+ RUN chmod +x /usr/bin/fwatchdog
86
97RUN mkdir -p /go/src/handler
108WORKDIR /go/src/handler
Original file line number Diff line number Diff line change 1+ FROM openfaas/of-watchdog:0.5.3 as watchdog
12FROM golang:1.10.4-alpine3.8 as build
23
3- RUN apk --no-cache add curl \
4- && echo "Pulling watchdog binary from Github." \
5- && curl -sSLf https://github.com/openfaas-incubator/of-watchdog/releases/download/0.5.0/of-watchdog > /usr/bin/fwatchdog \
6- && chmod +x /usr/bin/fwatchdog \
7- && apk del curl --no-cache
4+ COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
5+ RUN chmod +x /usr/bin/fwatchdog
86
97RUN mkdir -p /go/src/handler
108WORKDIR /go/src/handler
You can’t perform that action at this time.
0 commit comments