kivilaid commited on
Commit
5d2468c
·
verified ·
1 Parent(s): 80c7f39

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -10
Dockerfile CHANGED
@@ -11,23 +11,19 @@ ENV APIKEY_PATH=/data/.flowise
11
  ENV SECRETKEY_PATH=/data/.flowise
12
  ENV LOG_PATH=/data/.flowise/logs
13
  ENV BLOB_STORAGE_PATH=/data/.flowise/storage
14
- ENV EXECUTION_PATH=/app/packages/server/dist
15
 
16
  # Install dependencies
17
  RUN apk add --no-cache git python3 py3-pip make g++ build-base cairo-dev pango-dev chromium curl
18
 
19
- # Set puppeteer environment variables
20
  ENV PUPPETEER_SKIP_DOWNLOAD=true
21
  ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
22
-
23
- # Set NODE_OPTIONS to increase memory limit
24
  ENV NODE_OPTIONS=--max-old-space-size=4096
25
 
26
  # Set working directory
27
  WORKDIR /app
28
 
29
- # Copy all files
30
- COPY . .
31
 
32
  # Install pnpm
33
  RUN npm install -g pnpm
@@ -38,13 +34,13 @@ RUN pnpm install
38
  # Build project
39
  RUN pnpm build
40
 
41
- # Set server bin as executable
42
- RUN chmod +x /app/packages/server/bin/run
43
-
44
  # Create necessary directories
45
  RUN mkdir -p /data/.flowise/logs /data/.flowise/storage
46
  RUN chmod -R 777 /data/.flowise
47
 
 
 
 
48
  # Expose port for Hugging Face
49
  EXPOSE 8080
50
 
@@ -52,5 +48,5 @@ EXPOSE 8080
52
  HEALTHCHECK --interval=30s --timeout=10s --start-period=15s --retries=3 \
53
  CMD curl -f http://localhost:8080/ || exit 1
54
 
55
- # Start command - using the native server bin script
56
  CMD ["sh", "-c", "cd /app/packages/server/bin && ./run start"]
 
11
  ENV SECRETKEY_PATH=/data/.flowise
12
  ENV LOG_PATH=/data/.flowise/logs
13
  ENV BLOB_STORAGE_PATH=/data/.flowise/storage
 
14
 
15
  # Install dependencies
16
  RUN apk add --no-cache git python3 py3-pip make g++ build-base cairo-dev pango-dev chromium curl
17
 
 
18
  ENV PUPPETEER_SKIP_DOWNLOAD=true
19
  ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
 
 
20
  ENV NODE_OPTIONS=--max-old-space-size=4096
21
 
22
  # Set working directory
23
  WORKDIR /app
24
 
25
+ # Clone your specific repository
26
+ RUN git clone https://github.com/kivilaid/Flowise.git .
27
 
28
  # Install pnpm
29
  RUN npm install -g pnpm
 
34
  # Build project
35
  RUN pnpm build
36
 
 
 
 
37
  # Create necessary directories
38
  RUN mkdir -p /data/.flowise/logs /data/.flowise/storage
39
  RUN chmod -R 777 /data/.flowise
40
 
41
+ # Set server bin as executable
42
+ RUN chmod +x /app/packages/server/bin/run
43
+
44
  # Expose port for Hugging Face
45
  EXPOSE 8080
46
 
 
48
  HEALTHCHECK --interval=30s --timeout=10s --start-period=15s --retries=3 \
49
  CMD curl -f http://localhost:8080/ || exit 1
50
 
51
+ # Start command
52
  CMD ["sh", "-c", "cd /app/packages/server/bin && ./run start"]