Tony Chan commited on
Commit
c8f78c0
1 Parent(s): c847762

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +35 -0
Dockerfile ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:18-alpine
2
+
3
+ RUN mkdir -p /data && mkdir -p /data/flowise && mkdir -p /data/flowise/logs && chmod -R 777 /data
4
+ # Set home to the /data directory
5
+ ENV HOME=/data
6
+
7
+ # Set the working directory to the user's home directory
8
+ WORKDIR $HOME/flowise
9
+
10
+ RUN apk add --no-cache git
11
+ RUN apk add --no-cache python3 py3-pip make g++
12
+ # needed for pdfjs-dist
13
+ RUN apk add --no-cache build-base cairo-dev pango-dev
14
+
15
+ # Install Chromium
16
+ RUN apk add --no-cache chromium
17
+
18
+ ENV PUPPETEER_SKIP_DOWNLOAD=true
19
+ ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
20
+ ENV DATABASE_PATH=$HOME/flowise
21
+ ENV APIKEY_PATH=$HOME/flowise
22
+ ENV LOG_PATH=$HOME/flowise/logs
23
+ ENV LOG_LEVEL=debug
24
+ ENV DEBUG=true
25
+
26
+ # You can install a specific version like: flowise@1.0.0
27
+ RUN npm install -g flowise
28
+
29
+ RUN mkdir -p /usr/local/lib/node_modules/flowise && mkdir -p /usr/local/lib/node_modules/flowise/uploads && chmod -R 777 /usr/local/lib/node_modules/flowise
30
+
31
+ USER 1000
32
+
33
+ EXPOSE 3000
34
+
35
+ CMD /bin/sh -c "sleep 3; flowise start"