shubhamgs commited on
Commit
55af328
·
verified ·
1 Parent(s): c4fc446

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +31 -0
Dockerfile ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Set working directory
4
+ WORKDIR /app
5
+
6
+ # Copy the application files
7
+ COPY app.py deep_research_system.py ./
8
+
9
+ # Install system dependencies
10
+ RUN apt-get update && apt-get install -y \
11
+ build-essential \
12
+ && rm -rf /var/lib/apt/lists/*
13
+
14
+ # Install Python dependencies
15
+ RUN pip install --no-cache-dir \
16
+ streamlit \
17
+ langchain \
18
+ langgraph \
19
+ tavily-python \
20
+ langchain-openai \
21
+ && pip install --upgrade pip
22
+
23
+ # Expose the port Streamlit runs on
24
+ EXPOSE 8501
25
+
26
+ # Environment variables for API keys (to be set in Hugging Face Spaces Secrets)
27
+ ENV OPENAI_API_KEY=${OPENAI_API_KEY}
28
+ ENV TAVILY_API_KEY=${TAVILY_API_KEY}
29
+
30
+ # Command to run the app
31
+ CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]