Spaces:
Paused
Paused
Prathamesh Sarjerao Vaidya commited on
Commit ·
9b8ca8e
1
Parent(s): 0aebb14
Update Dockerfile
Browse files- Dockerfile +12 -0
Dockerfile
CHANGED
|
@@ -23,8 +23,20 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 23 |
libgomp1 \
|
| 24 |
ffmpeg \
|
| 25 |
curl \
|
|
|
|
|
|
|
| 26 |
&& rm -rf /var/lib/apt/lists/*
|
| 27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
# Create app directory
|
| 29 |
WORKDIR /app
|
| 30 |
|
|
|
|
| 23 |
libgomp1 \
|
| 24 |
ffmpeg \
|
| 25 |
curl \
|
| 26 |
+
tar \
|
| 27 |
+
xz-utils \
|
| 28 |
&& rm -rf /var/lib/apt/lists/*
|
| 29 |
|
| 30 |
+
# Install static ffmpeg build (includes libx264)
|
| 31 |
+
RUN echo "Installing static ffmpeg..." \
|
| 32 |
+
&& curl -L -o /tmp/ffmpeg.tar.xz "https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz" \
|
| 33 |
+
&& tar -xJf /tmp/ffmpeg.tar.xz -C /tmp \
|
| 34 |
+
&& cp /tmp/ffmpeg-*-static/ffmpeg /usr/local/bin/ffmpeg \
|
| 35 |
+
&& cp /tmp/ffmpeg-*-static/ffprobe /usr/local/bin/ffprobe \
|
| 36 |
+
&& chmod +x /usr/local/bin/ffmpeg /usr/local/bin/ffprobe \
|
| 37 |
+
&& rm -rf /tmp/ffmpeg* \
|
| 38 |
+
&& ffmpeg -version
|
| 39 |
+
|
| 40 |
# Create app directory
|
| 41 |
WORKDIR /app
|
| 42 |
|