bitsnaps commited on
Commit
88715fa
·
verified ·
1 Parent(s): 13a372a

fix: add steps make it compatible with persistent storage

Browse files

[add steps make it compatible with persistent storage](https://huggingface.co/spaces/FlowiseAI/Flowise/commit/35a76b0751b2a8da21cde21c2bdbe78127cdfe2f)

Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -3,7 +3,7 @@ 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
@@ -20,8 +20,8 @@ ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
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"]
 
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
 
20
  RUN npm install -g flowise
21
 
22
  # Configure Flowise directories using the ARG
23
+ RUN mkdir -p $FLOWISE_PATH/uploads /data && chmod -R 777 $FLOWISE_PATH /data
24
 
25
  WORKDIR /data
26
 
27
+ CMD ["sh", "-c", "mkdir -p $LOG_PATH && chmod -R 777 $LOG_PATH && npx flowise start"]