Flowise on Hugging Face. Persistent storage issues. #3708
Unanswered
SleepingSmel
asked this question in
Q&A
Replies: 1 comment 2 replies
-
There are many FROM node:18-alpine
USER root
# Arguments that can be passed at build time
ARG FLOWISE_PATH=/usr/local/lib/node_modules/flowise
ARG BASE_PATH=/data/.flowise
ARG DATABASE_PATH=$BASE_PATH
ARG APIKEY_PATH=$BASE_PATH
ARG SECRETKEY_PATH=$BASE_PATH
ARG LOG_PATH=$BASE_PATH/logs
# Set the ARGs as ENV
ENV FLOWISE_PATH=$FLOWISE_PATH
ENV BASE_PATH=$BASE_PATH
ENV DATABASE_PATH=$DATABASE_PATH
ENV APIKEY_PATH=$APIKEY_PATH
ENV SECRETKEY_PATH=$SECRETKEY_PATH
ENV LOG_PATH=$LOG_PATH
# 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
RUN npm install -g flowise
# Configure Flowise directories using the ARG
RUN mkdir -p $FLOWISE_PATH/uploads /data && chmod -R 777 $FLOWISE_PATH /data
WORKDIR /data
CMD ["sh", "-c", "mkdir -p $LOG_PATH && chmod -R 777 $LOG_PATH && npx flowise start"] You just need to make sure securing access (if you want to deploy it for prod by using lower user permission, e.g add these lines at the end before running flowise): ...
# Switch to the non-root user
USER 1000
# Expose the Flowise port
EXPOSE 3000
.... |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone! Well, Hugging Face's server for Flowise is fantastic, it offers more free space and RAM than other paid options. However, there's no documentation on maintaining persistent storage across restarts. Even with the option to purchase a paid storage tier on HF, it doesn't work. Achieving this would make Flowise more accessible by preventing data loss during server updates. Thanks by advance!
Beta Was this translation helpful? Give feedback.
All reactions