marchdigital commited on
Commit
de66237
·
verified ·
1 Parent(s): 4b5631c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -15
Dockerfile CHANGED
@@ -3,29 +3,25 @@ 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=/data/.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
- # Set the ARGs as ENV
13
- ENV FLOWISE_PATH=$FLOWISE_PATH
14
- ENV BASE_PATH=$BASE_PATH
15
- ENV DATABASE_PATH=$DATABASE_PATH
16
- ENV APIKEY_PATH=$APIKEY_PATH
17
- ENV SECRETKEY_PATH=$SECRETKEY_PATH
18
- ENV LOG_PATH=$LOG_PATH
19
-
20
- # Install dependencies
21
  RUN apk add --no-cache git python3 py3-pip make g++ build-base cairo-dev pango-dev chromium
22
 
23
- # Install Flowise globally
 
 
 
24
  RUN npm install -g flowise
25
 
26
- # # Configure Flowise directories using the ARG
27
- RUN mkdir -p $FLOWISE_PATH/uploads /data && chmod -R 777 $FLOWISE_PATH /data
28
 
29
- WORKDIR /data
30
 
31
- CMD ["sh", "-c", "mkdir -p $LOG_PATH && chmod -R 777 $LOG_PATH && npx flowise start"]
 
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"]