larrysim commited on
Commit
b6ef60b
·
verified ·
1 Parent(s): d9be4db

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile +20 -0
  2. requirements.txt +2 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a lightweight Python version
2
+ FROM python:3.10-slim
3
+
4
+ # Set up the working directory
5
+ WORKDIR /app
6
+
7
+ # Copy the requirements file first (better for caching)
8
+ COPY requirements.txt .
9
+
10
+ # Install dependencies
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ # Copy the rest of the app code
14
+ COPY . .
15
+
16
+ # Expose the port that Hugging Face expects (7860)
17
+ EXPOSE 7860
18
+
19
+ # Run Streamlit on port 7860
20
+ CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
requirements.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ streamlit
2
+ google-genai