GameSetAndMatch commited on
Commit
e4f4a86
·
verified ·
1 Parent(s): 2c2de24

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -34
Dockerfile CHANGED
@@ -1,34 +1 @@
1
- # Stage 1: Build stage
2
- FROM node:20-alpine AS build
3
-
4
- USER root
5
-
6
- # Skip downloading Chrome for Puppeteer (saves build time)
7
- ENV PUPPETEER_SKIP_DOWNLOAD=true
8
-
9
-
10
- ARG FLOWISE_PATH=/usr/local/lib/node_modules/flowise
11
- ARG BASE_PATH=/data/.flowise
12
- ARG DATABASE_PATH=$BASE_PATH
13
- ARG SECRETKEY_PATH=$BASE_PATH
14
- ARG LOG_PATH=$BASE_PATH/logs
15
- ARG BLOB_STORAGE_PATH=$BASE_PATH/storage
16
- ENV FLOWISE_USERNAME=user
17
- ENV FLOWISE_PASSWORD=1234
18
- # Install latest Flowise globally (specific version can be set: flowise@1.0.0)
19
- RUN npm install -g flowise
20
-
21
- # Stage 2: Runtime stage
22
- FROM node:20-alpine
23
-
24
- # Install runtime dependencies
25
- RUN apk add --no-cache chromium git python3 py3-pip make g++ build-base cairo-dev pango-dev curl
26
-
27
- # Set the environment variable for Puppeteer to find Chromium
28
- ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
29
-
30
- # Copy Flowise from the build stage
31
- COPY --from=build /usr/local/lib/node_modules /usr/local/lib/node_modules
32
- COPY --from=build /usr/local/bin /usr/local/bin
33
-
34
- ENTRYPOINT ["flowise", "start"]
 
1
+ FROM langflowai/langflow:latest