Alex Ellis (OpenFaaS Ltd) a9a77f0eca Update to Alpine 3.14 for base images
3.13 has vulnerabilities

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2021-07-27 09:29:43 +01:00

16 lines
299 B
Docker

FROM openfaas/classic-watchdog:0.18.8 as watchdog
FROM alpine:3.14
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
RUN chmod +x /usr/bin/fwatchdog
RUN apk add --no-cache nmap
ENV fprocess="xargs nmap"
RUN addgroup -g 1000 -S app && adduser -u 1000 -S app -G app
USER 1000
CMD ["fwatchdog"]