Sign inSign up

groteck/callme

By groteck

•Updated over 8 years ago

faas pi test

Image
0

729

groteck/callme repository overview

this is a test to deploy into my rbp cluster with open faas

FROM resin/armhf-alpine:3.6

RUN apk add --no-cache nodejs nodejs-npm ca-certificates
RUN apk --no-cache add curl \
    && echo "Pulling watchdog binary from Github." \
    && curl -sSL https://github.com/openfaas/faas/releases/download/0.8.0/fwatchdog-armhf > /usr/bin/fwatchdog \
    && chmod +x /usr/bin/fwatchdog \
    && apk del curl --no-cache

WORKDIR /root/

COPY package.json   .

RUN npm i
COPY index.js       .
COPY function       function
WORKDIR /root/function

ENV NPM_CONFIG_LOGLEVEL warn
RUN npm i || :
WORKDIR /root/

ENV cgi_headers="true"

ENV fprocess="node index.js"

HEALTHCHECK --interval=1s CMD [ -e /tmp/.lock ] || exit 1

CMD ["fwatchdog"]

Tag summary

Content type

Image

Digest

Size

17.7 MB

Last updated

over 8 years ago

docker pull groteck/callme