MA commited on
Commit
6184230
Β·
1 Parent(s): b696852

fix: dockerfile second fix

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -7
Dockerfile CHANGED
@@ -7,6 +7,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
7
  git \
8
  ffmpeg \
9
  build-essential \
 
 
 
 
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
  # ── Python: torch first (CPU build, works on Render's free/standard tier) ─────
@@ -15,15 +19,10 @@ RUN pip install --no-cache-dir \
15
  torch torchaudio --index-url https://download.pytorch.org/whl/cpu
16
 
17
  # ── Python: audiocraft + flask ────────────────────────────────────────────────
18
- RUN apt-get update && apt-get install -y \
19
- pkg-config \
20
- libavformat-dev \
21
- libavcodec-dev \
22
- libswscale-dev \
23
- && pip install --upgrade pip \
24
  && pip install --no-cache-dir audiocraft flask
25
 
26
- # ── App code ──────────────────────────────────────────────────────────────────
27
  COPY app.py index.html ./
28
 
29
  # ── Model cache directory (matches the Render persistent disk mount path) ─────
 
7
  git \
8
  ffmpeg \
9
  build-essential \
10
+ pkg-config \
11
+ libavformat-dev \
12
+ libavcodec-dev \
13
+ libswscale-dev \
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
  # ── Python: torch first (CPU build, works on Render's free/standard tier) ─────
 
19
  torch torchaudio --index-url https://download.pytorch.org/whl/cpu
20
 
21
  # ── Python: audiocraft + flask ────────────────────────────────────────────────
22
+ RUN pip install --upgrade pip \
 
 
 
 
 
23
  && pip install --no-cache-dir audiocraft flask
24
 
25
+ # ── App code ──────────────────────────────────────────────────────────────────
26
  COPY app.py index.html ./
27
 
28
  # ── Model cache directory (matches the Render persistent disk mount path) ─────