BenceMarci commited on
Commit
0ff8830
·
verified ·
1 Parent(s): 88178d7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -1
Dockerfile CHANGED
@@ -1,3 +1,20 @@
1
- FROM flowiseai/flowise:2.2
 
 
 
2
  ENV PORT=7860
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  CMD ["npx", "flowise", "start", "--port", "7860", "--host", "0.0.0.0"]
 
1
+ FROM node:18-alpine
2
+ USER root
3
+
4
+ # Hugging Face Spaces port
5
  ENV PORT=7860
6
+
7
+ # Install dependencies
8
+ RUN apk add --no-cache git python3 py3-pip make g++ build-base cairo-dev pango-dev chromium
9
+
10
+ ENV PUPPETEER_SKIP_DOWNLOAD=true
11
+ ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
12
+
13
+ # Install Flowise globally - exact old version
14
+ RUN npm install -g flowise@2.2
15
+
16
+ # Simple working directory
17
+ WORKDIR /app
18
+
19
+ # Start command - let Flowise create its own directories
20
  CMD ["npx", "flowise", "start", "--port", "7860", "--host", "0.0.0.0"]