#Dockerfile FROM openjdk:jdk-alpine
ADD https://github.com/openfaas/faas/releases/download/0.8.0/fwatchdog /usr/bin USER root RUN apk --update add imagemagick && rm -rf /var/cache/apk/* RUN chmod +x /usr/bin/fwatchdog
WORKDIR /root/
COPY Handler.java . COPY ConvertCmd.java . COPY Pipe.java . COPY liberation.ttf . RUN javac Handler.java RUN apk add ttf-liberation RUN apk add msttcorefonts-installer RUN update-ms-fonts RUN fc-cache -f
ENV fprocess="java Handler"
HEALTHCHECK --interval=60s CMD [ -e /tmp/.lock ] || exit 1
CMD ["/usr/bin/fwatchdog"]
Content type
Image
Digest
Size
103.8 MB
Last updated
over 8 years ago
docker pull zd3no/function_image_magick