File tree Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Original file line number Diff line number Diff line change
1
+ FROM openfaas/of-watchdog:0.5.3 as watchdog
1
2
FROM armhf/python:3.6-alpine
2
3
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
9
8
10
9
RUN apk --no-cache add musl-dev gcc make openssl-dev libffi-dev
11
10
Original file line number Diff line number Diff line change
1
+ FROM openfaas/of-watchdog:0.5.3 as watchdog
1
2
FROM armhf/python:3.6-alpine
2
3
3
4
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
10
8
11
9
# Add non root user
12
10
RUN addgroup -S app && adduser app -S -G app
You can’t perform that action at this time.
0 commit comments