Skip to content

Commit 759ab2f

Browse files
committed
Update to multi-arch image
Signed-off-by: Alex Ellis <[email protected]>
1 parent d49b117 commit 759ab2f

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

template/ruby-http/Dockerfile

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1+
FROM openfaas/of-watchdog:0.5.3 as watchdog
2+
13
FROM ruby:2.4-alpine3.8
24

5+
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
6+
RUN chmod +x /usr/bin/fwatchdog
7+
38
ARG 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

1212
WORKDIR /home/app
1313

1414
COPY Gemfile .
15-
COPY index.rb .
16-
COPY function function
15+
COPY index.rb .
16+
COPY function function
1717

1818
RUN bundle install \
1919
&& mkdir -p /home/app/function
@@ -40,3 +40,4 @@ ENV upstream_url="http://127.0.0.1:5000"
4040
ENV mode="http"
4141

4242
CMD ["fwatchdog"]
43+

0 commit comments

Comments
 (0)