File size: 911 Bytes
0b7f5c8 c3f20cf 09e0b8c 0b7f5c8 3a16fd8 0b7f5c8 651d960 4fdd033 0b7f5c8 58b0425 bf8e4e7 58b0425 c241a86 |
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 |
FROM node:18-alpine
USER root
# Arguments that can be passed at build time
ARG FLOWISE_PATH=/usr/local/lib/node_modules/flowise
ENV BASE_PATH=/data/.flowise
ENV DATABASE_PATH=$BASE_PATH
ENV APIKEY_PATH=$BASE_PATH
ENV SECRETKEY_PATH=$BASE_PATH
ARG LOG_PATH=$BASE_PATH/logs
# Install dependencies
RUN apk add --no-cache git python3 py3-pip make g++ build-base cairo-dev pango-dev chromium
ENV PUPPETEER_SKIP_DOWNLOAD=true
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
# Install Flowise globally, pinning a dependency to fix runtime issues
RUN npm install -g flowise@"^1.4.2" "@gomomento/sdk@<1.50.0"
# Configure Flowise directories using the ARG
RUN mkdir -p $LOG_PATH $FLOWISE_PATH/uploads && chmod -R 777 $LOG_PATH $FLOWISE_PATH
RUN mkdir -p $DATABASE_PATH && chmod -R 777 $DATABASE_PATH
WORKDIR /data
# configuration for deploying on huggingface
ENV PORT=7860
CMD ["npx", "flowise", "start"] |