Spaces:
Runtime error
Runtime error
FROM node:18-alpine | |
USER root | |
# Arguments that can be passed at build time | |
ARG FLOWISE_PATH=/usr/local/lib/node_modules/flowise | |
ARG BASE_PATH=/root/.flowise | |
ARG DATABASE_PATH=$BASE_PATH | |
ARG APIKEY_PATH=$BASE_PATH | |
ARG SECRETKEY_PATH=$BASE_PATH | |
ARG LOG_PATH=$BASE_PATH/logs | |
ARG BLOB_STORAGE_PATH=$BASE_PATH/storage | |
# Install dependencies | |
RUN apk add --no-cache git python3 py3-pip make g++ build-base cairo-dev pango-dev chromium | |
ENV PUPPETEER_SKIP_DOWNLOAD=true | |
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser | |
# Install Flowise globally | |
RUN npm install -g flowise | |
RUN ls -la | |
RUN pwd | |
# Configure Flowise directories using the ARG | |
RUN mkdir -p $LOG_PATH $FLOWISE_PATH/uploads && chmod -R 777 $LOG_PATH $FLOWISE_PATH | |
WORKDIR /data | |
RUN mkdir $FLOWISE_PATH/erbot_doc && chmod -R 777 $FLOWISE_PATH/erbot_doc | |
COPY erbot_doc $FLOWISE_PATH/erbot_doc | |
RUN mkdir $FLOWISE_PATH/Devinette && chmod -R 777 $FLOWISE_PATH/Devinette | |
COPY Devinette $FLOWISE_PATH/Devinette | |
RUN mkdir $FLOWISE_PATH/Protocole && chmod -R 777 $FLOWISE_PATH/Protocole | |
COPY Protocole $FLOWISE_PATH/Protocole | |
RUN mkdir $FLOWISE_PATH/Cim10 && chmod -R 777 $FLOWISE_PATH/Cim10 | |
COPY CIM_10 $FLOWISE_PATH/Cim10 | |
RUN ls $FLOWISE_PATH/erbot_doc | |
RUN ls $FLOWISE_PATH/Devinette | |
RUN ls $FLOWISE_PATH/Protocole | |
RUN ls $FLOWISE_PATH/Cim10 | |
RUN mkdir $FLOWISE_PATH/vectorstore1 && chmod -R 777 $FLOWISE_PATH/vectorstore1 | |
RUN mkdir $FLOWISE_PATH/vectorstore2 && chmod -R 777 $FLOWISE_PATH/vectorstore2 | |
RUN mkdir $FLOWISE_PATH/vectorstore3 && chmod -R 777 $FLOWISE_PATH/vectorstore3 | |
RUN mkdir $FLOWISE_PATH/vectorstore4 && chmod -R 777 $FLOWISE_PATH/vectorstore4 | |
RUN mkdir $FLOWISE_PATH/vectorstore5 && chmod -R 777 $FLOWISE_PATH/vectorstore5 | |
CMD ["npx", "flowise", "start"] |