Spaces:
Paused
Paused
| FROM node:18-alpine | |
| USER root | |
| # Install basic dependencies | |
| RUN apk add --no-cache git python3 py3-pip make g++ build-base | |
| # Install EXACT old version | |
| RUN npm install -g flowise@2.2 | |
| # Simple paths | |
| ENV BASE_PATH=/data/.flowise | |
| ENV DATABASE_PATH=$BASE_PATH | |
| ENV SECRETKEY_PATH=$BASE_PATH | |
| ENV LOG_PATH=$BASE_PATH/logs | |
| # Create directories | |
| RUN mkdir -p /data/.flowise/logs && chmod -R 777 /data/.flowise | |
| # Port | |
| ENV PORT=7860 | |
| CMD ["sh", "-c", "mkdir -p $LOG_PATH && chmod -R 777 $LOG_PATH && npx flowise start --port 7860 --host 0.0.0.0"] |