mirror of
https://github.com/FlowiseAI/Flowise.git
synced 2026-10-12 10:09:53 +00:00
* fix: add NODE_VERSION build-arg and native build deps to fix Docker CI build * fix: add NODE_VERSION build-arg and native build deps to fix Docker CI build * fix: use native ARM runners and parallel matrix builds for Docker Hub CI * fix: update Docker Hub CI artifact pattern to include 'linux' in filename * Potential fix for pull request finding 'CodeQL / Workflow does not contain permissions' Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
32 lines
963 B
Docker
32 lines
963 B
Docker
# Node.js version (overridable via build-arg from CI)
|
|
ARG NODE_VERSION=24
|
|
|
|
# Stage 1: Build stage
|
|
FROM node:${NODE_VERSION}-alpine AS build
|
|
|
|
USER root
|
|
|
|
# Install build dependencies
|
|
RUN apk add --no-cache git python3 py3-pip make g++ build-base cairo-dev pango-dev
|
|
|
|
# Skip downloading Chrome for Puppeteer (saves build time)
|
|
ENV PUPPETEER_SKIP_DOWNLOAD=true
|
|
|
|
# Install latest Flowise globally (specific version can be set: [email protected])
|
|
RUN npm install -g flowise
|
|
|
|
# Stage 2: Runtime stage
|
|
FROM node:${NODE_VERSION}-alpine
|
|
|
|
# Install runtime dependencies
|
|
RUN apk add --no-cache chromium git python3 py3-pip make g++ build-base cairo-dev pango-dev curl
|
|
|
|
# Set the environment variable for Puppeteer to find Chromium
|
|
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
|
|
|
|
# Copy Flowise from the build stage
|
|
COPY --from=build /usr/local/lib/node_modules /usr/local/lib/node_modules
|
|
COPY --from=build /usr/local/bin /usr/local/bin
|
|
|
|
ENTRYPOINT ["flowise", "start"]
|