Pranav4datasc commited on
Commit
415a223
·
verified ·
1 Parent(s): 5ca616a

Dockerfile per https://docs.flowiseai.com/configuration/deployment/hugging-face

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -30
Dockerfile CHANGED
@@ -1,41 +1,26 @@
1
-
2
- #FROM node:18-alpine
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 SECRETKEY_PATH=$BASE_PATH
10
- #ARG LOG_PATH=$BASE_PATH/logs
11
- #ARG BLOB_STORAGE_PATH=$BASE_PATH/storage
12
 
13
  # Install dependencies
14
- #RUN apk add --no-cache git python3 py3-pip make g++ build-base cairo-dev pango-dev chromium
15
 
16
- #ENV PUPPETEER_SKIP_DOWNLOAD=true
17
- #ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
18
 
19
  # Install Flowise globally
20
- #RUN npm install -g flowise
21
 
22
  # Configure Flowise directories using the ARG
23
- #RUN mkdir -p $LOG_PATH $FLOWISE_PATH/uploads && chmod -R 777 $LOG_PATH $FLOWISE_PATH
24
-
25
- #WORKDIR /data
26
-
27
- #CMD ["npx", "flowise", "start"]
28
-
29
-
30
-
31
- # Use the official Flowise Docker image
32
- FROM flowiseai/flowise:latest
33
-
34
- # The default port for Flowise is 3000
35
- # Hugging Face Spaces requires the port to be set to 7860
36
- ENV PORT=7860
37
 
38
- # Expose the port
39
- EXPOSE 7860
40
 
41
- # The Flowise entrypoint is already set in the base image
 
1
+ FROM node:18-alpine
2
+ USER root
 
3
 
4
  # Arguments that can be passed at build time
5
+ ARG FLOWISE_PATH=/usr/local/lib/node_modules/flowise
6
+ ARG BASE_PATH=/root/.flowise
7
+ ARG DATABASE_PATH=$BASE_PATH
8
+ ARG SECRETKEY_PATH=$BASE_PATH
9
+ ARG LOG_PATH=$BASE_PATH/logs
10
+ ARG BLOB_STORAGE_PATH=$BASE_PATH/storage
11
 
12
  # Install dependencies
13
+ RUN apk add --no-cache git python3 py3-pip make g++ build-base cairo-dev pango-dev chromium
14
 
15
+ ENV PUPPETEER_SKIP_DOWNLOAD=true
16
+ ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
17
 
18
  # Install Flowise globally
19
+ RUN npm install -g flowise
20
 
21
  # Configure Flowise directories using the ARG
22
+ RUN mkdir -p $LOG_PATH $FLOWISE_PATH/uploads && chmod -R 777 $LOG_PATH $FLOWISE_PATH
 
 
 
 
 
 
 
 
 
 
 
 
 
23
 
24
+ WORKDIR /data
 
25
 
26
+ CMD ["npx", "flowise", "start"]