andysabbath1982 commited on
Commit
b153ac5
·
1 Parent(s): 10bf9f9

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:18-alpine
2
+ USER root
3
+ # Arguments that can be passed at build time
4
+ ARG FLOWISE_PATH=/usr/local/lib/node_modules/flowise
5
+ ARG BASE_PATH=/root/.flowise
6
+ ARG DATABASE_PATH=$BASE_PATH
7
+ ARG APIKEY_PATH=$BASE_PATH
8
+ ARG SECRETKEY_PATH=$BASE_PATH
9
+ ARG LOG_PATH=$BASE_PATH/logs
10
+ # Install dependencies
11
+ RUN apk add --no-cache git python3 py3-pip make g++ build-base cairo-dev pango-dev
12
+ chromium
13
+ ENV PUPPETEER_SKIP_DOWNLOAD=true
14
+ ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
15
+ # Install Flowise globally
16
+ RUN npm install -g flowise
17
+ # Configure Flowise directories using the ARG
18
+ RUN mkdir -p $LOG_PATH $FLOWISE_PATH/uploads && chmod -R 777 $LOG_PATH
19
+ $FLOWISE_PATH
20
+ WORKDIR /data
21
+ CMD ["npx", "flowise", "start"]