FlowiseTest / Dockerfile
lucianotonet's picture
Update Dockerfile
e910a1e
raw
history blame
730 Bytes
FROM node:18-alpine
USER root
# Argumentos que podem ser passados no tempo de construção
ARG PORT=7860
ARG FLOWISE_PATH=/usr/local/lib/node_modules/flowise
# Instalar dependências
RUN apk add --no-cache git python3 py3-pip make g++ build-base cairo-dev pango-dev chromium
ENV PUPPETEER_SKIP_DOWNLOAD=true
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
# Instalar Flowise globalmente
RUN npm install -g flowise
# Configurar diretórios Flowise usando o ARG
RUN mkdir -p $FLOWISE_PATH && chmod 777 $FLOWISE_PATH
RUN mkdir -p $FLOWISE_PATH/logs && chmod -R 777 $FLOWISE_PATH/logs
RUN mkdir -p $FLOWISE_PATH/uploads && chmod -R 777 $FLOWISE_PATH/uploads
WORKDIR /data
CMD ["npx", "flowise", "start"]