File tree Expand file tree Collapse file tree 3 files changed +17
-18
lines changed Expand file tree Collapse file tree 3 files changed +17
-18
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 python:2.7-alpine
2
3
4
+ COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
5
+ RUN chmod +x /usr/bin/fwatchdog
6
+
7
+ ARG ADDITIONAL_PACKAGE
3
8
# 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 > /usr/bin/fwatchdog \
7
- && chmod +x /usr/bin/fwatchdog \
8
- && apk del curl --no-cache
9
+ RUN apk --no-cache add ${ADDITIONAL_PACKAGE}
9
10
10
11
WORKDIR /root/
11
12
Original file line number Diff line number Diff line change
1
+ FROM openfaas/of-watchdog:0.5.3 as watchdog
1
2
FROM python:3.7-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 > /usr/bin/fwatchdog \
7
- && chmod +x /usr/bin/fwatchdog \
8
- && apk del curl --no-cache
4
+ COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
5
+ RUN chmod +x /usr/bin/fwatchdog
9
6
10
- RUN apk --no-cache add musl-dev gcc make
7
+ ARG ADDITIONAL_PACKAGE
8
+ RUN apk --no-cache add musl-dev gcc make ${ADDITIONAL_PACKAGE}
11
9
12
10
WORKDIR /root/
13
11
Original file line number Diff line number Diff line change 1
- FROM python:3.6-alpine
1
+ FROM openfaas/of-watchdog:0.5.3 as watchdog
2
+ FROM python:3.7-alpine
3
+
4
+ COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
5
+ RUN chmod +x /usr/bin/fwatchdog
2
6
3
7
ARG ADDITIONAL_PACKAGE
4
8
# 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 > /usr/bin/fwatchdog \
8
- && chmod +x /usr/bin/fwatchdog \
9
- && apk del curl --no-cache
9
+ RUN apk --no-cache add ${ADDITIONAL_PACKAGE}
10
10
11
11
# Add non root user
12
12
RUN addgroup -S app && adduser app -S -G app
You can’t perform that action at this time.
0 commit comments