File size: 1,739 Bytes
2a3678a
 
79e9063
2a3678a
 
 
 
 
 
 
 
8f7ac6c
2a3678a
 
6ee2439
2a3678a
 
6ee2439
2a3678a
 
6ee2439
2e35e85
 
29cb665
 
2a3678a
 
62f4a60
29cb665
fa11f69
8f7ac6c
ac51b1b
 
fa11f69
ac51b1b
 
eebb92c
416a2d3
 
 
f9c96e1
 
416a2d3
ac51b1b
2d86cf4
416a2d3
f9c96e1
2e2ffae
 
 
 
 
f9c96e1
ff8b6e8
29cb665
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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"]