Hammad712 commited on
Commit
f324484
·
verified ·
1 Parent(s): 9855228

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +27 -0
Dockerfile ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install system dependencies
6
+ RUN apt-get update && apt-get install -y \
7
+ build-essential \
8
+ libsndfile1 \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ # Copy requirements first for better caching
12
+ COPY requirements.txt .
13
+ RUN pip install --no-cache-dir -r requirements.txt
14
+
15
+ # Copy application code
16
+ COPY main.py .
17
+
18
+ # Set environment variables
19
+ ENV PORT=7860
20
+ ENV MODEL_NAME="jonatasgrosman/wav2vec2-large-xlsr-53-arabic"
21
+ # HF_TOKEN will be set at runtime
22
+
23
+ # Expose port
24
+ EXPOSE 7860
25
+
26
+ # Command to run the application
27
+ CMD ["python", "main.py"]