|
FROM debian:bullseye-slim |
|
|
|
|
|
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/* |
|
|
|
|
|
RUN python3 -m pip install --no-cache-dir gradio |
|
|
|
WORKDIR /app |
|
|
|
|
|
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 |
|
|
|
|
|
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_script.py . |
|
|
|
ENV PATH="/usr/local/bin:${PATH}" |
|
ENV LD_LIBRARY_PATH="/usr/local/lib:${LD_LIBRARY_PATH}" |