ftiiii commited on
Commit
dae1166
·
verified ·
1 Parent(s): 25dd596

Delete Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -54
Dockerfile DELETED
@@ -1,54 +0,0 @@
1
- # =========================
2
- # Dockerfile cho app Gradio âm thanh
3
- # =========================
4
-
5
- # Base image Python nhẹ và ổn định
6
- FROM python:3.10-slim
7
-
8
- # Tránh interactive prompts và giảm layer size
9
- ENV DEBIAN_FRONTEND=noninteractive
10
- ENV PYTHONUNBUFFERED=1
11
- ENV MPLBACKEND=Agg # Matplotlib backend không GUI
12
-
13
- # Cài các dependencies hệ thống cần thiết cho audio và TensorFlow
14
- RUN apt-get update && \
15
- apt-get install -y --no-install-recommends \
16
- ffmpeg \
17
- libsndfile1 \
18
- build-essential \
19
- wget \
20
- python3-dev \
21
- libatlas-base-dev \
22
- gfortran \
23
- liblapack-dev \
24
- libblas-dev \
25
- curl \
26
- && rm -rf /var/lib/apt/lists/*
27
-
28
- # Thiết lập thư mục làm việc
29
- WORKDIR /app
30
- COPY . /app
31
-
32
- # Cài các package Python nhẹ trước
33
- RUN pip install --no-cache-dir \
34
- gradio==4.26.0 \
35
- numpy<2 \
36
- librosa==0.10.1 \
37
- matplotlib \
38
- pywavelets \
39
- scikit-learn \
40
- joblib \
41
- imageio \
42
- pillow
43
-
44
- # Cài TensorFlow riêng để tránh lỗi build
45
- RUN pip install --no-cache-dir tensorflow==2.11.0
46
-
47
- # Nếu bạn cần Demucs / Silero VAD / torch
48
- # RUN pip install --no-cache-dir torch==1.13.1 torchaudio==0.13.1 demucs==4.0.1 silero-vad==5.1.2 soundfile
49
-
50
- # Expose port Gradio
51
- EXPOSE 7860
52
-
53
- # Command chạy app
54
- CMD ["python", "appy.py"]