FROM flowiseai/flowise:latest # environment variables ARG BASE_PATH=/root/.flowise ARG DATABASE_PATH=$BASE_PATH ARG APIKEY_PATH=$BASE_PATH ARG SECRETKEY_PATH=$BASE_PATH ARG LOG_PATH=$BASE_PATH/logs ARG BLOB_STORAGE_PATH=$BASE_PATH/storage ARG FLOWISE_PATH=/usr/local/lib/node_modules/flowise # create data directories and set permissions RUN mkdir -p $LOG_PATH $FLOWISE_PATH/uploads RUN chmod -R 777 $LOG_PATH $FLOWISE_PATH