FROM jazys38/n8n-custom-form-viewer:1.1.1

RUN apk --update add curl
ENV PYTHONUNBUFFERED=1
RUN apk add --update --no-cache python3 && ln -sf python3 /usr/bin/python
RUN python3 -m ensurepip
RUN pip3 install --no-cache --upgrade pip setuptools
RUN npm install -g socket.io 
RUN npm install -g socket.io-client
RUN pip3 install bs4 requests pdfkit
RUN apk --update --upgrade add bash cairo pango gdk-pixbuf py3-cffi py3-pillow
RUN pip3 install WeasyPrint==51
RUN apk add --no-cache  chromium --repository=http://dl-cdn.alpinelinux.org/alpine/v3.10/main
RUN npm install n8n-nodes-puppeteer@0.3.1 -g
