mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-23 01:00:22 +03:00
7867489727
* Add curl in docker image for native healthchecks Fixes this issue: https://github.com/FlowiseAI/Flowise/issues/4126 * fix: add container-native healthcheck - Added curl utility in dockerfile - Added healthcheck configuration in docker compose * fix: exclude ping endpoint from logging
26 lines
749 B
Docker
26 lines
749 B
Docker
# Stage 1: Build stage
|
|
FROM node:20-alpine AS build
|
|
|
|
USER root
|
|
|
|
# Skip downloading Chrome for Puppeteer (saves build time)
|
|
ENV PUPPETEER_SKIP_DOWNLOAD=true
|
|
|
|
# Install latest Flowise globally (specific version can be set: flowise@1.0.0)
|
|
RUN npm install -g flowise
|
|
|
|
# Stage 2: Runtime stage
|
|
FROM node:20-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"]
|