NoLev commited on
Commit
c67d7a4
·
1 Parent(s): e147941

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -23
Dockerfile CHANGED
@@ -1,26 +1,26 @@
1
- PORT=3000
2
- PASSPHRASE=MYPASSPHRASE # Passphrase used to create encryption key
3
- DATABASE_PATH=/root/.flowise
4
- APIKEY_PATH=/root/.flowise
5
- SECRETKEY_PATH=/root/.flowise
6
- LOG_PATH=/root/.flowise/logs
7
 
8
- # DATABASE_TYPE=postgres
9
- # DATABASE_PORT=""
10
- # DATABASE_HOST=""
11
- # DATABASE_NAME="flowise"
12
- # DATABASE_USER=""
13
- # DATABASE_PASSWORD=""
14
- # OVERRIDE_DATABASE=true
15
 
16
- # FLOWISE_USERNAME=user
17
- # FLOWISE_PASSWORD=1234
18
- # DEBUG=true
19
- # LOG_LEVEL=debug (error | warn | info | verbose | debug)
20
- # TOOL_FUNCTION_BUILTIN_DEP=crypto,fs
21
- # TOOL_FUNCTION_EXTERNAL_DEP=moment,lodash
22
 
23
- # LANGCHAIN_TRACING_V2=true
24
- # LANGCHAIN_ENDPOINT=https://api.smith.langchain.com
25
- # LANGCHAIN_API_KEY=your_api_key
26
- # LANGCHAIN_PROJECT=your_project
 
 
 
 
 
 
 
 
 
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
 
12
+ # Install dependencies
13
+ RUN apk add --no-cache git python3 py3-pip make g++ build-base cairo-dev pango-dev chromium
 
 
 
 
14
 
15
+ ENV PUPPETEER_SKIP_DOWNLOAD=true
16
+ ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
17
+
18
+ # Install Flowise globally
19
+ RUN npm install -g flowise
20
+
21
+ # Configure Flowise directories using the ARG
22
+ RUN mkdir -p $LOG_PATH $FLOWISE_PATH/uploads && chmod -R 777 $LOG_PATH $FLOWISE_PATH
23
+
24
+ WORKDIR /data
25
+
26
+ CMD ["npx", "flowise", "start"]