FROM flowiseai/flowise:latest # Arguments that can be passed at build time 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 necessary directories and set permissions RUN mkdir -p $LOG_PATH $FLOWISE_PATH/logs $FLOWISE_PATH/uploads && \ chmod -R 777 $LOG_PATH $FLOWISE_PATH # Set the working directory WORKDIR /data