|
FROM node:18-alpine |
|
|
|
RUN mkdir -p /data && mkdir -p /data/flowise && mkdir -p /data/flowise/logs && chmod -R 777 /data |
|
|
|
ENV HOME=/data |
|
|
|
WORKDIR $HOME/flowise |
|
|
|
RUN apk add --no-cache git |
|
RUN apk add --no-cache python3 py3-pip make g++ |
|
|
|
RUN apk add --no-cache build-base cairo-dev pango-dev |
|
|
|
|
|
RUN apk add --no-cache chromium |
|
|
|
ENV PUPPETEER_SKIP_DOWNLOAD=true |
|
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser |
|
ENV DATABASE_PATH=$HOME/flowise |
|
ENV APIKEY_PATH=$HOME/flowise |
|
ENV LOG_PATH=$HOME/flowise/logs |
|
ENV LOG_LEVEL=debug |
|
ENV DEBUG=true |
|
|
|
|
|
RUN npm install -g flowise |
|
|
|
RUN mkdir -p /usr/local/lib/node_modules/flowise && mkdir -p /usr/local/lib/node_modules/flowise/uploads && chmod -R 777 /usr/local/lib/node_modules/flowise |
|
|
|
USER 1000 |
|
|
|
EXPOSE 3000 |
|
|
|
CMD /bin/sh -c "sleep 3; flowise start" |