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
+
1
3
FROM ruby:2.4-alpine3.8
2
4
5
+ COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
6
+ RUN chmod +x /usr/bin/fwatchdog
7
+
3
8
ARG ADDITIONAL_PACKAGE
4
9
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}
11
11
12
12
WORKDIR /home/app
13
13
14
14
COPY Gemfile .
15
- COPY index.rb .
16
- COPY function function
15
+ COPY index.rb .
16
+ COPY function function
17
17
18
18
RUN bundle install \
19
19
&& mkdir -p /home/app/function
@@ -40,3 +40,4 @@ ENV upstream_url="http://127.0.0.1:5000"
40
40
ENV mode="http"
41
41
42
42
CMD ["fwatchdog" ]
43
+
You can’t perform that action at this time.
0 commit comments