Spaces:
Running
Running
Dockerfile push
Browse files- Dockerfile +6 -17
Dockerfile
CHANGED
@@ -3,12 +3,11 @@ 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
|
8 |
-
ARG
|
9 |
-
ARG
|
10 |
-
ARG
|
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,21 +15,11 @@ 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 |
-
# Set environment variables using the arguments
|
20 |
-
ENV PORT=$PORT
|
21 |
-
ENV PASSPHRASE=$PASSPHRASE
|
22 |
-
ENV DATABASE_PATH=$DATABASE_PATH
|
23 |
-
ENV APIKEY_PATH=$APIKEY_PATH
|
24 |
-
ENV SECRETKEY_PATH=$SECRETKEY_PATH
|
25 |
-
ENV LOG_PATH=$LOG_PATH
|
26 |
-
|
27 |
# Install Flowise globally
|
28 |
RUN npm install -g flowise
|
29 |
|
30 |
# Configure Flowise directories using the ARG
|
31 |
-
RUN mkdir -p $FLOWISE_PATH
|
32 |
-
RUN mkdir -p $LOG_PATH && chmod -R 777 $LOG_PATH
|
33 |
-
RUN mkdir -p $FLOWISE_PATH/uploads && chmod -R 777 $FLOWISE_PATH/uploads
|
34 |
|
35 |
WORKDIR /data
|
36 |
|
|
|
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 |
|
12 |
# Install dependencies
|
13 |
RUN apk add --no-cache git python3 py3-pip make g++ build-base cairo-dev pango-dev chromium
|
|
|
15 |
ENV PUPPETEER_SKIP_DOWNLOAD=true
|
16 |
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
|
17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
# Install Flowise globally
|
19 |
RUN npm install -g flowise
|
20 |
|
21 |
# Configure Flowise directories using the ARG
|
22 |
+
RUN mkdir -p $LOG_PATH $FLOWISE_PATH/uploads && chmod -R 777 $LOG_PATH $FLOWISE_PATH
|
|
|
|
|
23 |
|
24 |
WORKDIR /data
|
25 |
|