Deepti-AI commited on
Commit
c0cca9e
·
verified ·
1 Parent(s): a2d2e29

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +30 -0
Dockerfile ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ---- Base image ----
2
+ FROM python:3.11-slim
3
+
4
+ # ---- Set environment variables ----
5
+ ENV PYTHONUNBUFFERED=1
6
+ ENV DEEPGRAM_API_KEY=YOUR_DEEPGRAM_KEY
7
+ ENV OPENAI_API_KEY=YOUR_OPENAI_KEY
8
+
9
+ # ---- Set working directory ----
10
+ WORKDIR /app
11
+
12
+ # ---- Install system dependencies ----
13
+ RUN apt-get update && apt-get install -y \
14
+ ffmpeg \
15
+ build-essential \
16
+ libsndfile1 \
17
+ && rm -rf /var/lib/apt/lists/*
18
+
19
+ # ---- Copy project files ----
20
+ COPY . /app
21
+
22
+ # ---- Install Python dependencies ----
23
+ RUN pip install --upgrade pip
24
+ RUN pip install --no-cache-dir -r requirements.txt
25
+
26
+ # ---- Expose port ----
27
+ EXPOSE 7860
28
+
29
+ # ---- Command to run FastAPI with Uvicorn ----
30
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]