File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 1+ FROM openfaas/of-watchdog:0.5.3 as watchdog
2+
13FROM ruby:2.4-alpine3.8
24
5+ COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
6+ RUN chmod +x /usr/bin/fwatchdog
7+
38ARG ADDITIONAL_PACKAGE
49
5- # Alternatively use ADD https:// (which will not be cached by Docker builder)
6- RUN apk --no-cache add curl ${ADDITIONAL_PACKAGE} \
7- && echo "Pulling watchdog binary from Github." \
8- && curl -sSL https://github.com/openfaas-incubator/of-watchdog/releases/download/0.5.0/of-watchdog > /usr/bin/fwatchdog \
9- && chmod +x /usr/bin/fwatchdog \
10- && apk del curl
10+ RUN apk --no-cache add ${ADDITIONAL_PACKAGE}
1111
1212WORKDIR /home/app
1313
1414COPY Gemfile .
15- COPY index.rb .
16- COPY function function
15+ COPY index.rb .
16+ COPY function function
1717
1818RUN bundle install \
1919 && mkdir -p /home/app/function
@@ -40,3 +40,4 @@ ENV upstream_url="http://127.0.0.1:5000"
4040ENV mode="http"
4141
4242CMD ["fwatchdog" ]
43+
You can’t perform that action at this time.
0 commit comments