NIRAJz commited on
Commit
285e6d0
·
verified ·
1 Parent(s): ca17cd5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +30 -9
Dockerfile CHANGED
@@ -1,20 +1,41 @@
1
- FROM python:3.13.5-slim
2
 
3
  WORKDIR /app
4
 
 
5
  RUN apt-get update && apt-get install -y \
6
- build-essential \
7
  curl \
8
- git \
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
- COPY requirements.txt ./
12
- COPY src/ ./src/
13
 
14
- RUN pip3 install -r requirements.txt
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
 
16
- EXPOSE 8501
 
17
 
18
- HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
 
19
 
20
- ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
 
1
+ FROM python:3.12-slim
2
 
3
  WORKDIR /app
4
 
5
+ # Install system dependencies
6
  RUN apt-get update && apt-get install -y \
 
7
  curl \
 
8
  && rm -rf /var/lib/apt/lists/*
9
 
10
+ # Copy requirements first for better caching
11
+ COPY requirements.txt .
12
 
13
+ # Upgrade pip and install packages with YOUR versions
14
+ RUN pip install --no-cache-dir --upgrade pip && \
15
+ pip install --no-cache-dir \
16
+ langchain==0.3.27 \
17
+ langchain-core==0.3.74 \
18
+ langchain-community==0.3.27 \
19
+ langchain-openai==0.3.28 \
20
+ langgraph==0.6.3 \
21
+ langchain-groq==0.3.6 \
22
+ groq==0.30.0 \
23
+ diskcache==5.6.3\
24
+ streamlit==1.37.1 \
25
+ pandas==2.1.3 \
26
+ numpy==1.26.4 \
27
+ pydantic==2.8.2 \
28
+ plotly==5.24.1 \
29
+ nest-asyncio==1.6.0 \
30
+ python-dotenv==0.21.0 \
31
+ tqdm==4.66.5 \
32
+ openai==1.97.0
33
 
34
+ # Copy application code
35
+ COPY . .
36
 
37
+ # Expose port
38
+ EXPOSE 8501
39
 
40
+ # Run the application
41
+ CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]