lucianotonet commited on
Commit
34b7a59
1 Parent(s): 9fbf8fd

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -0
Dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:18-alpine
2
+
3
+ USER root
4
+
5
+ RUN apk add --no-cache git
6
+ RUN apk add --no-cache python3 py3-pip make g++
7
+ # needed for pdfjs-dist
8
+ RUN apk add --no-cache build-base cairo-dev pango-dev
9
+
10
+ # Install Chromium
11
+ RUN apk add --no-cache chromium
12
+
13
+ ENV PUPPETEER_SKIP_DOWNLOAD=true
14
+ ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
15
+
16
+ # You can install a specific version like: flowise@1.0.0
17
+ RUN npm install -g flowise
18
+
19
+ RUN mkdir -p /usr/local/lib/node_modules/flowise/uploads && chmod -R 777 /usr/local/lib/node_modules/flowise/uploads
20
+ RUN mkdir -p /usr/local/lib/node_modules/flowise/logs && chmod -R 777 /usr/local/lib/node_modules/flowise/logs
21
+ RUN touch /usr/local/lib/node_modules/flowise/api.json && chmod 777 /usr/local/lib/node_modules/flowise/api.json
22
+ RUN touch /usr/local/lib/node_modules/flowise/encryption.key && chmod 777 /usr/local/lib/node_modules/flowise/encryption.key
23
+
24
+ WORKDIR /data
25
+
26
+ CMD ["npx", "flowise", "start"]