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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -31
Dockerfile CHANGED
@@ -1,31 +1,22 @@
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"]
 
1
+ # Use a lightweight Python image
2
+ FROM python:3.10
3
+
4
+ # Set the working directory
5
+ WORKDIR /app
6
+
7
+ # Copy all files into the container
8
+ COPY . /app
9
+
10
+ # Install Python dependencies
11
+ RUN pip install --no-cache-dir \
12
+ streamlit \
13
+ langchain \
14
+ langgraph \
15
+ tavily-python \
16
+ langchain-openai \
17
+
18
+ # Expose the port Streamlit runs on
19
+ EXPOSE 8501
20
+
21
+ # Command to run the app
22
+ CMD streamlit run news_tts_app.py --server.port 8501 --server.address 0.0.0.0