mdlbsk / Dockerfile
Johan09033's picture
dckfile
8c5d945
raw
history blame
923 Bytes
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"