mrbeliever commited on
Commit
5c548ba
·
verified ·
1 Parent(s): 1dfbac3

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ # Set environment variable for Google API Key
4
+ ENV GOOGLE_API_KEY=<Your_Google_API_Key>
5
+
6
+ # Set working directory
7
+ WORKDIR /app
8
+
9
+ # Copy requirements file
10
+ COPY requirements.txt .
11
+
12
+ # Install dependencies
13
+ RUN pip install --no-cache-dir -r requirements.txt
14
+
15
+ # Copy application code
16
+ COPY . .
17
+
18
+ # Expose port
19
+ EXPOSE 8000
20
+
21
+ # Run the application
22
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]