Spaces:
Sleeping
Sleeping
Commit
·
1106bb6
1
Parent(s):
6a150c7
Basline commit
Browse files- Dockerfile +27 -0
- env +36 -0
Dockerfile
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM node:18-alpine
|
| 2 |
+
USER root
|
| 3 |
+
|
| 4 |
+
# Arguments that can be passed at build time
|
| 5 |
+
ARG FLOWISE_PATH=/usr/local/lib/node_modules/flowise
|
| 6 |
+
ARG BASE_PATH=/root/.flowise
|
| 7 |
+
ARG DATABASE_PATH=$BASE_PATH
|
| 8 |
+
ARG APIKEY_PATH=$BASE_PATH
|
| 9 |
+
ARG SECRETKEY_PATH=$BASE_PATH
|
| 10 |
+
ARG LOG_PATH=$BASE_PATH/logs
|
| 11 |
+
ARG BLOB_STORAGE_PATH=$BASE_PATH/storage
|
| 12 |
+
|
| 13 |
+
# Install dependencies
|
| 14 |
+
RUN apk add --no-cache git python3 py3-pip make g++ build-base cairo-dev pango-dev chromium
|
| 15 |
+
|
| 16 |
+
ENV PUPPETEER_SKIP_DOWNLOAD=true
|
| 17 |
+
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
|
| 18 |
+
|
| 19 |
+
# Install Flowise globally
|
| 20 |
+
RUN npm install -g flowise
|
| 21 |
+
|
| 22 |
+
# Configure Flowise directories using the ARG
|
| 23 |
+
RUN mkdir -p $LOG_PATH $FLOWISE_PATH/uploads && chmod -R 777 $LOG_PATH $FLOWISE_PATH
|
| 24 |
+
|
| 25 |
+
WORKDIR /data
|
| 26 |
+
|
| 27 |
+
CMD ["npx", "flowise", "start"]
|
env
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
PORT=3000
|
| 2 |
+
DATABASE_PATH=/root/.flowise
|
| 3 |
+
APIKEY_PATH=/root/.flowise
|
| 4 |
+
SECRETKEY_PATH=/root/.flowise
|
| 5 |
+
LOG_PATH=/root/.flowise/logs
|
| 6 |
+
BLOB_STORAGE_PATH=/root/.flowise/storage
|
| 7 |
+
|
| 8 |
+
# CORS_ORIGINS="*"
|
| 9 |
+
# IFRAME_ORIGINS="*"
|
| 10 |
+
|
| 11 |
+
# NUMBER_OF_PROXIES= 1
|
| 12 |
+
|
| 13 |
+
# DATABASE_TYPE=postgres
|
| 14 |
+
# DATABASE_PORT=""
|
| 15 |
+
# DATABASE_HOST=""
|
| 16 |
+
# DATABASE_NAME="flowise"
|
| 17 |
+
# DATABASE_USER=""
|
| 18 |
+
# DATABASE_PASSWORD=""
|
| 19 |
+
# DATABASE_SSL=true
|
| 20 |
+
# DATABASE_SSL_KEY_BASE64=<Self signed certificate in BASE64>
|
| 21 |
+
|
| 22 |
+
# FLOWISE_USERNAME=user
|
| 23 |
+
# FLOWISE_PASSWORD=1234
|
| 24 |
+
# FLOWISE_SECRETKEY_OVERWRITE=myencryptionkey
|
| 25 |
+
# FLOWISE_FILE_SIZE_LIMIT=50mb
|
| 26 |
+
# DEBUG=true
|
| 27 |
+
# LOG_LEVEL=debug (error | warn | info | verbose | debug)
|
| 28 |
+
# TOOL_FUNCTION_BUILTIN_DEP=crypto,fs
|
| 29 |
+
# TOOL_FUNCTION_EXTERNAL_DEP=moment,lodash
|
| 30 |
+
|
| 31 |
+
# LANGCHAIN_TRACING_V2=true
|
| 32 |
+
# LANGCHAIN_ENDPOINT=https://api.smith.langchain.com
|
| 33 |
+
# LANGCHAIN_API_KEY=your_api_key
|
| 34 |
+
# LANGCHAIN_PROJECT=your_project
|
| 35 |
+
|
| 36 |
+
# DISABLE_FLOWISE_TELEMETRY=true
|