Spaces:
Runtime error
Runtime error
lucianotonet
commited on
Commit
•
66b0de4
1
Parent(s):
83fc95f
Update Dockerfile
Browse files- Dockerfile +10 -18
Dockerfile
CHANGED
@@ -3,12 +3,12 @@ USER root
|
|
3 |
|
4 |
# Arguments that can be passed at build time
|
5 |
ARG FLOWISE_PATH=/usr/local/lib/node_modules/flowise
|
6 |
-
ARG
|
7 |
ARG PASSPHRASE=
|
8 |
-
ARG DATABASE_PATH
|
9 |
-
ARG APIKEY_PATH
|
10 |
-
ARG SECRETKEY_PATH
|
11 |
-
ARG LOG_PATH
|
12 |
|
13 |
# Install dependencies
|
14 |
RUN apk add --no-cache git python3 py3-pip make g++ build-base cairo-dev pango-dev chromium
|
@@ -16,22 +16,14 @@ RUN apk add --no-cache git python3 py3-pip make g++ build-base cairo-dev pango-d
|
|
16 |
ENV PUPPETEER_SKIP_DOWNLOAD=true
|
17 |
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
|
18 |
|
19 |
-
# Configure Flowise directories using the ARG
|
20 |
-
RUN mkdir -p $LOG_PATH $FLOWISE_PATH/uploads && \
|
21 |
-
chmod -R 777 $LOG_PATH $FLOWISE_PATH $FLOWISE_PATH/uploads
|
22 |
-
|
23 |
-
|
24 |
-
ENV PORT=7860
|
25 |
-
|
26 |
-
ENV PASSPHRASE=$PASSPHRASE
|
27 |
-
ENV DATABASE_PATH=$DATABASE_PATH
|
28 |
-
ENV APIKEY_PATH=$APIKEY_PATH
|
29 |
-
ENV SECRETKEY_PATH=$SECRETKEY_PATH
|
30 |
-
ENV LOG_PATH=$LOG_PATH
|
31 |
-
|
32 |
# Install Flowise globally
|
33 |
RUN npm install -g flowise
|
34 |
|
|
|
|
|
|
|
|
|
|
|
35 |
WORKDIR /data
|
36 |
|
37 |
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 PORT=7860
|
7 |
ARG PASSPHRASE=
|
8 |
+
ARG DATABASE_PATH=/root/.flowise
|
9 |
+
ARG APIKEY_PATH=/root/.flowise
|
10 |
+
ARG SECRETKEY_PATH=/root/.flowise
|
11 |
+
ARG LOG_PATH=/root/.flowise/logs
|
12 |
|
13 |
# Install dependencies
|
14 |
RUN apk add --no-cache git python3 py3-pip make g++ build-base cairo-dev pango-dev chromium
|
|
|
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 && chmod -R 777 $LOG_PATH
|
24 |
+
RUN mkdir -p $FLOWISE_PATH && chmod -R 777 $FLOWISE_PATH
|
25 |
+
RUN mkdir -p $FLOWISE_PATH/uploads && chmod -R 777 $FLOWISE_PATH/uploads
|
26 |
+
|
27 |
WORKDIR /data
|
28 |
|
29 |
CMD ["npx", "flowise", "start"]
|