VoiceClips commited on
Commit
c65d5d2
·
verified ·
1 Parent(s): a5b22a0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -4
Dockerfile CHANGED
@@ -1,23 +1,25 @@
1
  FROM python:3.9-slim
2
 
3
- # FFmpeg ve OpenCV için gerekli sistem kütüphaneleri
4
  RUN apt-get update && apt-get install -y \
5
  ffmpeg \
6
  libsm6 \
7
  libxext6 \
8
  git \
 
 
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
  WORKDIR /app
12
 
13
- # Bağımlılıkların yüklenmesi
14
  COPY requirements.txt .
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
17
- # Tüm kodların kopyalanması
18
  COPY . .
19
 
20
- # Hugging Face Spaces portu
21
  EXPOSE 7860
22
 
23
  CMD ["python", "app.py"]
 
1
  FROM python:3.9-slim
2
 
3
+ # System dependencies including FFmpeg
4
  RUN apt-get update && apt-get install -y \
5
  ffmpeg \
6
  libsm6 \
7
  libxext6 \
8
  git \
9
+ fontconfig \
10
+ fonts-dejavu \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
  WORKDIR /app
14
 
15
+ # Requirements installation
16
  COPY requirements.txt .
17
  RUN pip install --no-cache-dir -r requirements.txt
18
 
19
+ # Copy application files
20
  COPY . .
21
 
22
+ # Expose port 7860 for Hugging Face Spaces
23
  EXPOSE 7860
24
 
25
  CMD ["python", "app.py"]