Low-Quality-Inator / Dockerfile
RandomPersonRR's picture
Update Dockerfile
9bc18c5 verified
raw
history blame
1.04 kB
FROM debian:bullseye-slim
# Install build and runtime deps
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
autoconf \
automake \
libtool \
pkg-config \
git \
wget \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# Install yt-dlp via pip (more up-to-date than Debian package)
RUN python3 -m pip install --no-cache-dir gradio
WORKDIR /app
# Build and install libfdk-aac locally
RUN git clone https://github.com/mstorsjo/fdk-aac.git /tmp/fdk-aac && \
cd /tmp/fdk-aac && \
autoreconf -fiv && \
./configure --prefix=/usr/local --disable-shared --enable-static && \
make && make install
# Build and install fdkaac locally
RUN git clone https://github.com/nu774/fdkaac.git /tmp/fdkaac && \
cd /tmp/fdkaac && \
autoreconf -fiv && \
./configure --prefix=/usr/local && \
make && make install
# Copy your Python app code here
COPY your_script.py .
ENV PATH="/usr/local/bin:${PATH}"
ENV LD_LIBRARY_PATH="/usr/local/lib:${LD_LIBRARY_PATH}"