mihirjadhav commited on
Commit
ccb01ed
·
verified ·
1 Parent(s): 57d0957

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -28
Dockerfile CHANGED
@@ -1,33 +1,16 @@
1
- # Base Image: We use a Node.js base image suitable for both Flowise and Python
2
- FROM node:20-alpine
3
 
4
- # User: Switch to the root user for installations
5
- USER root
6
-
7
- # Arguments for Flowise directories
8
- ARG FLOWISE_PATH=/usr/local/lib/node_modules/flowise
9
- ARG BASE_PATH=/root/.flowise
10
- ARG DATABASE_PATH=$BASE_PATH
11
- ARG APIKEY_PATH=$BASE_PATH
12
- ARG SECRETKEY_PATH=$BASE_PATH
13
- ARG LOG_PATH=$BASE_PATH/logs
14
-
15
- # Install dependencies for both Flowise and OLLAMA PHI
16
- RUN apk add --no-cache git python3 py3-pip make g++ build-base cairo-dev pango-dev chromium \
17
- && pip install flowise ollama
18
-
19
- # Environment Variables for Flowise and OLLAMA
20
- ENV PUPPETEER_SKIP_DOWNLOAD=true
21
- ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
22
 
23
- # Configure Flowise directories
24
- RUN mkdir -p $LOG_PATH $FLOWISE_PATH/uploads && chmod -R 777 $LOG_PATH $FLOWISE_PATH
 
25
 
26
- # Working Directory: Where the app code will reside
27
- WORKDIR /app
28
 
29
- # Expose Ollama PHI's port
30
- EXPOSE 11434
31
 
32
- # Start Flowise and OLLAMA PHI (Ideally, use a process manager like Supervisord)
33
- CMD ["npx", "flowise", "start", "&", "ollama", "run", "phi"]
 
1
+ FROM python:3.9 # Base image
 
2
 
3
+ WORKDIR /app
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
 
5
+ # Install dependencies
6
+ COPY requirements.txt ./
7
+ RUN pip install -r requirements.txt
8
 
9
+ # Copy your code
10
+ COPY . ./
11
 
12
+ # Expose the port used by Streamlit
13
+ EXPOSE 8501
14
 
15
+ # Start the Streamlit app
16
+ CMD ["streamlit", "run", "app.py"]