Raiff1982 commited on
Commit
01eccaa
·
verified ·
1 Parent(s): 171b46a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -2
Dockerfile CHANGED
@@ -1,6 +1,27 @@
1
- FROM python:3.9
 
 
 
2
  WORKDIR /app
 
 
 
 
 
 
 
 
 
 
 
 
3
  COPY . /app
 
 
4
  RUN pip install --no-cache-dir -r requirements.txt
5
- CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "8000"]
6
 
 
 
 
 
 
 
1
+ # Base Image
2
+ FROM python:3.9-slim
3
+
4
+ # Set Working Directory
5
  WORKDIR /app
6
+
7
+ # Install System Dependencies
8
+ RUN apt-get update && apt-get install -y \
9
+ build-essential \
10
+ libportaudio2 \
11
+ libportaudio-dev \
12
+ libportaudiocpp0 \
13
+ ffmpeg \
14
+ && apt-get clean \
15
+ && rm -rf /var/lib/apt/lists/*
16
+
17
+ # Copy Application Files
18
  COPY . /app
19
+
20
+ # Install Python Dependencies
21
  RUN pip install --no-cache-dir -r requirements.txt
 
22
 
23
+ # Expose Port (Optional)
24
+ EXPOSE 8000
25
+
26
+ # Run the Application
27
+ CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "8000"]