ImMoZer commited on
Commit
d179136
·
verified ·
1 Parent(s): 4cb4d29

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +34 -0
Dockerfile ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:18-alpine
2
+
3
+ USER root
4
+
5
+ # Arguments that can be passed at build time
6
+ ARG FLOWISE_PATH=/usr/local/lib/node_modules/flowise
7
+ ARG BASE_PATH=/root/.flowise
8
+ ARG DATABASE_PATH=$BASE_PATH
9
+ ARG APIKEY_PATH=$BASE_PATH
10
+ ARG SECRETKEY_PATH=$BASE_PATH
11
+ ARG LOG_PATH=$BASE_PATH/logs
12
+ ARG BLOB_STORAGE_PATH=$BASE_PATH/storage
13
+
14
+ # Install dependencies
15
+ RUN apk add --no-cache git python3 py3-pip make g++ build-base cairo-dev pango-dev chromium
16
+
17
+ ENV PUPPETEER_SKIP_DOWNLOAD=true
18
+ ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
19
+ ENV FLOWISE_USERNAME=${FLOWISE_USERNAME}
20
+ ENV FLOWISE_PASSWORD=${FLOWISE_PASSWORD}
21
+
22
+ # Install latest version of Flowise
23
+ RUN npm cache clean --force && \
24
+ npm install -g flowise@latest && \
25
+ npm cache clean --force
26
+
27
+ # Verify installed version
28
+ RUN npm list -g flowise
29
+
30
+ # Configure Flowise directories using the ARG
31
+ RUN mkdir -p $LOG_PATH $FLOWISE_PATH/uploads && chmod -R 777 $LOG_PATH $FLOWISE_PATH
32
+
33
+ WORKDIR /data
34
+ CMD ["npx", "flowise", "start"]