bobocup commited on
Commit
f08a977
·
verified ·
1 Parent(s): f02ee7f

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile +20 -0
  2. requirements.txt +7 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install dependencies
6
+ COPY app/requirements.txt .
7
+ RUN pip install --no-cache-dir -r requirements.txt
8
+
9
+ # Copy application code
10
+ COPY app/ .
11
+
12
+ # Create a directory for the credentials
13
+ RUN mkdir -p /app/credentials
14
+
15
+ # Expose the port
16
+ EXPOSE 8050
17
+
18
+ # Command to run the application
19
+ # Use the default Hugging Face port 7860
20
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
requirements.txt ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ fastapi==0.110.0
2
+ uvicorn==0.27.1
3
+ google-auth==2.38.0
4
+ google-cloud-aiplatform==1.86.0
5
+ pydantic==2.6.1
6
+ google-genai==1.13.0
7
+ openai