basyx commited on
Commit
a0f7097
·
verified ·
1 Parent(s): 8f57909

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -17
Dockerfile CHANGED
@@ -1,6 +1,3 @@
1
- # --------------------------------------------------
2
- # Base Image
3
- # --------------------------------------------------
4
  FROM python:3.10-slim
5
 
6
  ENV PYTHONUNBUFFERED=1
@@ -9,42 +6,43 @@ ENV PYTHONDONTWRITEBYTECODE=1
9
  WORKDIR /app
10
 
11
  # --------------------------------------------------
12
- # SYSTEM DEPENDENCIES (FIX FOR PYAV)
13
  # --------------------------------------------------
14
  RUN apt-get update && apt-get install -y \
15
  git \
16
  ffmpeg \
17
- pkg-config \
18
  libsndfile1 \
19
- libavformat-dev \
20
- libavcodec-dev \
21
- libavdevice-dev \
22
- libavutil-dev \
23
- libavfilter-dev \
24
- libswscale-dev \
25
- libswresample-dev \
26
  build-essential \
27
  curl \
28
  && rm -rf /var/lib/apt/lists/*
29
 
30
  # --------------------------------------------------
31
- # PYTHON INSTALL
32
  # --------------------------------------------------
33
  COPY requirements.txt .
34
 
35
  RUN pip install --upgrade pip setuptools wheel
36
 
37
- # Install Torch FIRST (stable builds)
38
  RUN pip install --no-cache-dir \
39
  torch \
40
  torchaudio \
41
  --index-url https://download.pytorch.org/whl/cpu
42
 
43
- # Install remaining deps
44
- RUN pip install --no-cache-dir -r requirements.txt
 
 
 
 
 
 
 
 
 
45
 
46
  # --------------------------------------------------
47
- # COPY APP
48
  # --------------------------------------------------
49
  COPY . .
50
 
 
 
 
 
1
  FROM python:3.10-slim
2
 
3
  ENV PYTHONUNBUFFERED=1
 
6
  WORKDIR /app
7
 
8
  # --------------------------------------------------
9
+ # SYSTEM DEPENDENCIES (NO PyAV BUILD TRIGGERS)
10
  # --------------------------------------------------
11
  RUN apt-get update && apt-get install -y \
12
  git \
13
  ffmpeg \
 
14
  libsndfile1 \
 
 
 
 
 
 
 
15
  build-essential \
16
  curl \
17
  && rm -rf /var/lib/apt/lists/*
18
 
19
  # --------------------------------------------------
20
+ # PYTHON BASE
21
  # --------------------------------------------------
22
  COPY requirements.txt .
23
 
24
  RUN pip install --upgrade pip setuptools wheel
25
 
26
+ # Install Torch FIRST (stable CPU build)
27
  RUN pip install --no-cache-dir \
28
  torch \
29
  torchaudio \
30
  --index-url https://download.pytorch.org/whl/cpu
31
 
32
+ # Install ONLY safe deps (prevents av build trigger)
33
+ RUN pip install --no-cache-dir \
34
+ transformers \
35
+ flask \
36
+ soundfile \
37
+ numpy \
38
+ scipy \
39
+ pydub
40
+
41
+ # Install Audiocraft LAST (controlled install)
42
+ RUN pip install --no-cache-dir audiocraft==1.3.0
43
 
44
  # --------------------------------------------------
45
+ # APP
46
  # --------------------------------------------------
47
  COPY . .
48