Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +2 -4
Dockerfile
CHANGED
@@ -10,6 +10,7 @@ ARG DATABASE_PATH=$BASE_PATH
|
|
10 |
ARG APIKEY_PATH=$BASE_PATH
|
11 |
ARG SECRETKEY_PATH=$BASE_PATH
|
12 |
ARG LOG_PATH=$BASE_PATH/logs
|
|
|
13 |
|
14 |
ENV PUPPETEER_SKIP_DOWNLOAD=true
|
15 |
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
|
@@ -23,11 +24,8 @@ FROM node:20-alpine
|
|
23 |
# Install runtime dependencies
|
24 |
RUN apk add --no-cache chromium git python3 py3-pip make g++ build-base cairo-dev pango-dev
|
25 |
|
26 |
-
# Set the environment variable for Puppeteer to find Chromium
|
27 |
-
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
|
28 |
-
|
29 |
# Configure Flowise directories using the ARG
|
30 |
-
RUN mkdir -p $LOG_PATH $FLOWISE_PATH/uploads && chmod -R 777 $LOG_PATH $FLOWISE_PATH
|
31 |
|
32 |
# Copy Flowise from the build stage
|
33 |
COPY --from=build /usr/local/lib/node_modules /usr/local/lib/node_modules
|
|
|
10 |
ARG APIKEY_PATH=$BASE_PATH
|
11 |
ARG SECRETKEY_PATH=$BASE_PATH
|
12 |
ARG LOG_PATH=$BASE_PATH/logs
|
13 |
+
ARG BLOB_STORAGE_PATH=$BASE_PATH/storage
|
14 |
|
15 |
ENV PUPPETEER_SKIP_DOWNLOAD=true
|
16 |
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
|
|
|
24 |
# Install runtime dependencies
|
25 |
RUN apk add --no-cache chromium git python3 py3-pip make g++ build-base cairo-dev pango-dev
|
26 |
|
|
|
|
|
|
|
27 |
# Configure Flowise directories using the ARG
|
28 |
+
RUN mkdir -p $LOG_PATH $BLOB_STORAGE_PATH $FLOWISE_PATH/uploads && chmod -R 777 $LOG_PATH $BLOB_STORAGE_PATH $FLOWISE_PATH
|
29 |
|
30 |
# Copy Flowise from the build stage
|
31 |
COPY --from=build /usr/local/lib/node_modules /usr/local/lib/node_modules
|