Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +22 -31
Dockerfile
CHANGED
|
@@ -1,31 +1,22 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|