File size: 700 Bytes
a016cc4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Stage 1: Base image with Langflow
FROM film69/langflow:latest AS base
WORKDIR /app
USER root

# Set environment variables
ENV TZ=Asia/Bangkok \
    DO_NOT_TRACK=true \
    LANGFLOW_SAVE_DB_IN_CONFIG_DIR=true \
    LANGFLOW_AUTO_SAVING_INTERVAL=1000 \
    LANGFLOW_AUTO_SAVING=true \
    LANGFLOW_AUTO_LOGIN=false \
    LANGFLOW_STORE=true \
    LANGFLOW_DEV=true \
    LANGFLOW_COMPONENTS_PATH=/app/langflow_data/components/ \
    LANGFLOW_CONFIG_DIR=/app/langflow_data/config/ \
    LANGFLOW_LANGCHAIN_CACHE=InMemoryCache \
    LANGFLOW_MAX_FILE_SIZE_UPLOAD=10000 \
    LANGFLOW_PORT=7860 

# Expose port
EXPOSE 7860

CMD ["python", "-m", "langflow", "run", "--host", "0.0.0.0", "--port", "7860"]