Files
qlik-cli-faas/Dockerfile
Justin Donnelly 9e0d93479c updated to v2.21.0
2023-07-17 09:23:46 -04:00

30 lines
613 B
Docker

FROM ghcr.io/openfaas/classic-watchdog:0.2.2 as watchdog
FROM alpine:3.17
RUN mkdir -p /home/app
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
RUN chmod +x /usr/bin/fwatchdog
COPY qlik /usr/bin/qlik
# Add non root user
RUN addgroup -S app && adduser app -S -G app
RUN chown app /home/app
WORKDIR /home/app
USER app
# Populate example here - i.e. "cat", "sha512sum" or "node index.js"
ENV fprocess="xargs qlik"
# Set to true to see request in function logs
ENV write_debug="false"
EXPOSE 8080
HEALTHCHECK --interval=3s CMD [ -e /tmp/.lock ] || exit 1
CMD ["fwatchdog"]