lucianotonet commited on
Commit
e910a1e
1 Parent(s): ea939bf

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -13
Dockerfile CHANGED
@@ -3,12 +3,8 @@ FROM node:18-alpine
3
  USER root
4
 
5
  # Argumentos que podem ser passados no tempo de construção
6
- ARG FLOWISE_PATH=/root/.flowise
7
  ARG PORT=7860
8
- ARG PASSPHRASE=
9
- ARG DATABASE_PATH=/root/.flowise
10
- ARG APIKEY_PATH=/root/.flowise
11
- ARG SECRETKEY_PATH=/root/.flowise
12
 
13
  # Instalar dependências
14
  RUN apk add --no-cache git python3 py3-pip make g++ build-base cairo-dev pango-dev chromium
@@ -16,18 +12,11 @@ RUN apk add --no-cache git python3 py3-pip make g++ build-base cairo-dev pango-d
16
  ENV PUPPETEER_SKIP_DOWNLOAD=true
17
  ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
18
 
19
- # Definir variáveis de ambiente usando os argumentos
20
- ENV PORT=$PORT
21
- ENV PASSPHRASE=$PASSPHRASE
22
- ENV DATABASE_PATH=$DATABASE_PATH
23
- ENV APIKEY_PATH=$APIKEY_PATH
24
- ENV SECRETKEY_PATH=$SECRETKEY_PATH
25
-
26
  # Instalar Flowise globalmente
27
  RUN npm install -g flowise
28
 
29
  # Configurar diretórios Flowise usando o ARG
30
- RUN mkdir -p $FLOWISE_PATH && chmod 777 $FLOWISE_PATH
31
  RUN mkdir -p $FLOWISE_PATH/logs && chmod -R 777 $FLOWISE_PATH/logs
32
  RUN mkdir -p $FLOWISE_PATH/uploads && chmod -R 777 $FLOWISE_PATH/uploads
33
 
 
3
  USER root
4
 
5
  # Argumentos que podem ser passados no tempo de construção
 
6
  ARG PORT=7860
7
+ ARG FLOWISE_PATH=/usr/local/lib/node_modules/flowise
 
 
 
8
 
9
  # Instalar dependências
10
  RUN apk add --no-cache git python3 py3-pip make g++ build-base cairo-dev pango-dev chromium
 
12
  ENV PUPPETEER_SKIP_DOWNLOAD=true
13
  ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
14
 
 
 
 
 
 
 
 
15
  # Instalar Flowise globalmente
16
  RUN npm install -g flowise
17
 
18
  # Configurar diretórios Flowise usando o ARG
19
+ RUN mkdir -p $FLOWISE_PATH && chmod 777 $FLOWISE_PATH
20
  RUN mkdir -p $FLOWISE_PATH/logs && chmod -R 777 $FLOWISE_PATH/logs
21
  RUN mkdir -p $FLOWISE_PATH/uploads && chmod -R 777 $FLOWISE_PATH/uploads
22