File size: 923 Bytes
8c5d945
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM node:18-alpine

RUN mkdir -p /data && mkdir -p /data/flowise && mkdir -p /data/flowise/logs && chmod -R 777 /data
# Set home to the /data directory
ENV HOME=/data

WORKDIR $HOME/flowise

RUN apk add --no-cache git
RUN apk add --no-cache python3 py3-pip make g++
# needed for pdfjs-dist
RUN apk add --no-cache build-base cairo-dev pango-dev

# Install Chromium
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

# You can install a specific version like: [email protected]
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"