Skip to content

Commit 7e93737

Browse files
burtonralexellis
authored andcommitted
Update arm templates to use multi-arch watchdog
Signed-off-by: Burton Rheutan <[email protected]>
1 parent ccf3ba6 commit 7e93737

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

template/python3-flask-armhf/Dockerfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1+
FROM openfaas/of-watchdog:0.5.3 as watchdog
12
FROM armhf/python:3.6-alpine
23

3-
# Alternatively use ADD https:// (which will not be cached by Docker builder)
4-
RUN apk --no-cache add curl \
5-
&& echo "Pulling watchdog binary from Github." \
6-
&& curl -sSLf https://github.com/openfaas-incubator/of-watchdog/releases/download/0.5.0/of-watchdog-armhf > /usr/bin/fwatchdog \
7-
&& chmod +x /usr/bin/fwatchdog \
8-
&& apk del curl --no-cache
4+
ARG ADDITIONAL_PACKAGE
5+
6+
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
7+
RUN chmod +x /usr/bin/fwatchdog
98

109
RUN apk --no-cache add musl-dev gcc make openssl-dev libffi-dev
1110

template/python3-http-armhf/Dockerfile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1+
FROM openfaas/of-watchdog:0.5.3 as watchdog
12
FROM armhf/python:3.6-alpine
23

34
ARG ADDITIONAL_PACKAGE
4-
# Alternatively use ADD https:// (which will not be cached by Docker builder)
5-
RUN apk --no-cache add curl ${ADDITIONAL_PACKAGE} \
6-
&& echo "Pulling watchdog binary from Github." \
7-
&& curl -sSLf https://github.com/openfaas-incubator/of-watchdog/releases/download/0.4.6/of-watchdog-armhf > /usr/bin/fwatchdog \
8-
&& chmod +x /usr/bin/fwatchdog \
9-
&& apk del curl --no-cache
5+
6+
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
7+
RUN chmod +x /usr/bin/fwatchdog
108

119
# Add non root user
1210
RUN addgroup -S app && adduser app -S -G app

0 commit comments

Comments
 (0)