Spaces:
Sleeping
Sleeping
taowang1993
commited on
Update Dockerfile
Browse files- Dockerfile +6 -16
Dockerfile
CHANGED
@@ -1,27 +1,17 @@
|
|
1 |
-
FROM
|
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 |
ARG BLOB_STORAGE_PATH=$BASE_PATH/storage
|
|
|
12 |
|
13 |
-
#
|
14 |
-
RUN
|
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"]
|
|
|
1 |
+
FROM flowiseai/flowise:latest
|
|
|
2 |
|
3 |
# Arguments that can be passed at build time
|
|
|
4 |
ARG BASE_PATH=/root/.flowise
|
5 |
ARG DATABASE_PATH=$BASE_PATH
|
6 |
ARG APIKEY_PATH=$BASE_PATH
|
7 |
ARG SECRETKEY_PATH=$BASE_PATH
|
8 |
ARG LOG_PATH=$BASE_PATH/logs
|
9 |
ARG BLOB_STORAGE_PATH=$BASE_PATH/storage
|
10 |
+
ARG FLOWISE_PATH=/usr/local/lib/node_modules/flowise
|
11 |
|
12 |
+
# Create necessary directories and set permissions
|
13 |
+
RUN mkdir -p $LOG_PATH $FLOWISE_PATH/logs $FLOWISE_PATH/uploads && \
|
14 |
+
chmod -R 777 $LOG_PATH $FLOWISE_PATH
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
+
# Set the working directory
|
17 |
WORKDIR /data
|
|
|
|