basyx commited on
Commit
745474f
·
verified ·
1 Parent(s): fb2e90c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -21
Dockerfile CHANGED
@@ -1,43 +1,36 @@
1
- FROM python:3.10-slim
2
 
3
  ENV PYTHONUNBUFFERED=1
4
- ENV PYTHONDONTWRITEBYTECODE=1
5
-
6
  WORKDIR /app
7
 
8
- # --------------------------------------------------
9
- # SYSTEM DEPENDENCIES REQUIRED BY PYAV
10
- # --------------------------------------------------
11
  RUN apt-get update && apt-get install -y \
12
- git \
13
  ffmpeg \
14
- pkg-config \
15
- build-essential \
16
  curl \
17
  libsndfile1 \
18
- libavcodec-dev \
19
- libavformat-dev \
20
- libavdevice-dev \
21
- libavutil-dev \
22
- libavfilter-dev \
23
- libswscale-dev \
24
- libswresample-dev \
25
  && rm -rf /var/lib/apt/lists/*
26
 
27
- # --------------------------------------------------
28
- # PYTHON
29
- # --------------------------------------------------
30
  COPY requirements.txt .
31
 
32
  RUN pip install --upgrade pip setuptools wheel
33
 
34
- # CPU torch (HF safe)
35
  RUN pip install torch torchaudio \
36
  --index-url https://download.pytorch.org/whl/cpu
37
 
 
 
 
 
38
  RUN pip install --no-cache-dir -r requirements.txt
39
 
40
- # Install Audiocraft AFTER system libs exist
41
  RUN pip install --no-cache-dir git+https://github.com/facebookresearch/audiocraft.git
42
 
43
  COPY . .
 
1
+ FROM python:3.10
2
 
3
  ENV PYTHONUNBUFFERED=1
 
 
4
  WORKDIR /app
5
 
6
+ # ----------------------------
7
+ # SYSTEM DEPENDENCIES
8
+ # ----------------------------
9
  RUN apt-get update && apt-get install -y \
 
10
  ffmpeg \
11
+ git \
 
12
  curl \
13
  libsndfile1 \
 
 
 
 
 
 
 
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
+ # ----------------------------
17
+ # PYTHON SETUP
18
+ # ----------------------------
19
  COPY requirements.txt .
20
 
21
  RUN pip install --upgrade pip setuptools wheel
22
 
23
+ # Torch CPU (HF compatible)
24
  RUN pip install torch torchaudio \
25
  --index-url https://download.pytorch.org/whl/cpu
26
 
27
+ # ⭐ FORCE PREBUILT PYAV WHEEL
28
+ RUN pip install av==10.0.0
29
+
30
+ # Install app deps
31
  RUN pip install --no-cache-dir -r requirements.txt
32
 
33
+ # Install audiocraft LAST
34
  RUN pip install --no-cache-dir git+https://github.com/facebookresearch/audiocraft.git
35
 
36
  COPY . .