monikode commited on
Commit
b3516c6
·
verified ·
1 Parent(s): 127f0fe

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -5
Dockerfile CHANGED
@@ -4,20 +4,23 @@ USER root
4
  ARG FLOWISE_PATH=/usr/local/lib/node_modules/flowise
5
  ARG BASE_PATH=/root/.flowise
6
  ARG DATABASE_PATH=$BASE_PATH
7
- ARG APIKEY_PATH=$BASE_PATH
8
- ARG SECRETKEY_PATH=$BASE_PATH
9
- ARG LOG PATH=$BASE_PATH/logs
10
  ARG BLOB_STORAGE_PATH=$BASE_PATH/storage
11
 
 
12
  RUN apk add --no-cache git python3 py3-pip make g++ build-base cairo-dev pango-dev chromium
13
 
14
- ENV PUPPETEER_SKIP_DOWNLOAD=true
15
  ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
16
 
 
17
  RUN npm install -g flowise
18
 
 
19
  RUN mkdir -p $LOG_PATH $FLOWISE_PATH/uploads && chmod -R 777 $LOG_PATH $FLOWISE_PATH
20
-
21
  WORKDIR /data
22
 
23
  CMD ["npx", "flowise", "start"]
 
4
  ARG FLOWISE_PATH=/usr/local/lib/node_modules/flowise
5
  ARG BASE_PATH=/root/.flowise
6
  ARG DATABASE_PATH=$BASE_PATH
7
+ ARG APIKEY_PATH=$BASE_PATH
8
+ ARG SECRETKEY_PATH=$BASE_PATH
9
+ ARG LOG_PATH=$BASE_PATH/logs
10
  ARG BLOB_STORAGE_PATH=$BASE_PATH/storage
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"]