geethareddy commited on
Commit
26eb6ac
·
verified ·
1 Parent(s): 7dad982

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +37 -0
Dockerfile ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10
2
+
3
+ # Install system dependencies
4
+ RUN apt-get update && apt-get install -y \
5
+ fakeroot \
6
+ git \
7
+ git-lfs \
8
+ ffmpeg \
9
+ libsm6 \
10
+ libxext6 \
11
+ cmake \
12
+ rsync \
13
+ libgl1-mesa-glx \
14
+ espeak \
15
+ libespeak1 \
16
+ curl \
17
+ nodejs \
18
+ && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
19
+ && apt-get install -y nodejs \
20
+ && rm -rf /var/lib/apt/lists/* \
21
+ && git lfs install
22
+
23
+ # Create user
24
+ RUN useradd -m -u 1000 user
25
+ WORKDIR /home/user/app
26
+ USER user
27
+
28
+ # Install Python dependencies
29
+ COPY requirements.txt .
30
+ RUN pip install --no-cache-dir pip -U && \
31
+ pip install --no-cache-dir -r requirements.txt
32
+
33
+ # Copy application code
34
+ COPY --chown=1000:1000 . .
35
+
36
+ # Run application
37
+ CMD ["python", "voice_health_analyzer.py"]