Spaces:
Running
Running
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)
- 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=/
|
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 $
|
24 |
|
25 |
WORKDIR /data
|
26 |
|
27 |
-
CMD ["
|
|
|
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"]
|