Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files- Dockerfile +38 -0
Dockerfile
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM debian:bullseye-slim
|
2 |
+
|
3 |
+
# Install build and runtime deps
|
4 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
5 |
+
build-essential \
|
6 |
+
autoconf \
|
7 |
+
automake \
|
8 |
+
libtool \
|
9 |
+
pkg-config \
|
10 |
+
git \
|
11 |
+
wget \
|
12 |
+
ca-certificates \
|
13 |
+
&& rm -rf /var/lib/apt/lists/*
|
14 |
+
|
15 |
+
# Install yt-dlp via pip (more up-to-date than Debian package)
|
16 |
+
RUN python3 -m pip install --no-cache-dir gradio
|
17 |
+
|
18 |
+
WORKDIR /app
|
19 |
+
|
20 |
+
# Build and install libfdk-aac locally
|
21 |
+
RUN git clone https://github.com/mstorsjo/fdk-aac.git /tmp/fdk-aac && \
|
22 |
+
cd /tmp/fdk-aac && \
|
23 |
+
autoreconf -fiv && \
|
24 |
+
./configure --prefix=/usr/local --disable-shared --enable-static && \
|
25 |
+
make -j8 && make install
|
26 |
+
|
27 |
+
# Build and install fdkaac locally
|
28 |
+
RUN git clone https://github.com/nu774/fdkaac.git /tmp/fdkaac && \
|
29 |
+
cd /tmp/fdkaac && \
|
30 |
+
autoreconf -fiv && \
|
31 |
+
./configure --prefix=/usr/local && \
|
32 |
+
make && make install
|
33 |
+
|
34 |
+
# Copy your Python app code here
|
35 |
+
COPY your_script.py .
|
36 |
+
|
37 |
+
ENV PATH="/usr/local/bin:${PATH}"
|
38 |
+
ENV LD_LIBRARY_PATH="/usr/local/lib:${LD_LIBRARY_PATH}"
|