Persano commited on
Commit
d9d411c
verified
1 Parent(s): 94e6b77

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -21
Dockerfile CHANGED
@@ -1,27 +1,26 @@
1
- FROM node:18-alpine
2
- USER root
3
 
4
- # Arguments that can be passed at build time
5
- ARG FLOWISE_PATH=/usr/local/lib/node_modules/flowise
6
- ARG BASE_PATH=/root/.flowise
7
- ARG DATABASE_PATH=$BASE_PATH
8
- ARG APIKEY_PATH=$BASE_PATH
9
- ARG SECRETKEY_PATH=$BASE_PATH
10
- ARG LOG_PATH=$BASE_PATH/logs
11
- ARG BLOB_STORAGE_PATH=$BASE_PATH/storage
12
 
13
- # Install dependencies
14
- RUN apk add --no-cache git python3 py3-pip make g++ build-base cairo-dev pango-dev chromium
15
 
16
- ENV PUPPETEER_SKIP_DOWNLOAD=true
17
- ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
 
18
 
19
- # Install Flowise globally
20
- RUN npm install -g flowise
21
 
22
- # Configure Flowise directories using the ARG
23
- RUN mkdir -p $LOG_PATH $FLOWISE_PATH/uploads && chmod -R 777 $LOG_PATH $FLOWISE_PATH
24
 
25
- WORKDIR /data
26
-
27
- CMD ["npx", "flowise", "start"]
 
1
+ FROM python:3.10-slim
 
2
 
3
+ # Instalar depend锚ncias do sistema
4
+ RUN apt-get update && apt-get install -y \
5
+ build-essential \
6
+ libglib2.0-0 \
7
+ libsm6 \
8
+ libxext6 \
9
+ libxrender-dev \
10
+ && rm -rf /var/lib/apt/lists/*
11
 
12
+ # Criar diret贸rio de trabalho
13
+ WORKDIR /app
14
 
15
+ # Copiar arquivos
16
+ COPY requirements.txt .
17
+ COPY . .
18
 
19
+ # Instalar depend锚ncias Python
20
+ RUN pip install --no-cache-dir -r requirements.txt
21
 
22
+ # Expor porta
23
+ EXPOSE 7860
24
 
25
+ # Rodar app
26
+ CMD ["python", "app.py"]