40 lines
1.4 KiB
Docker
40 lines
1.4 KiB
Docker
################################################################
|
|
#
|
|
# Project: Sound Processing Functions
|
|
# Created by: Niklas Müller
|
|
# Created at: 2023.12.21
|
|
#
|
|
# podman build -t sound-processing-functions .
|
|
# podman run -e PROCESSING_TOOL='DNF3' -v '/path/to/audio_video/file/':/app/input_files/ -v /output_path/:/app/output_files/ -d --name sound-processing-functions -t sound-processing-functions
|
|
# podman stop sound-processing-functions; podman rm sound-processing-functions; podman build -t sound-processing-functions .; podman run -d --name sound-processing-functions sound-processing-functions
|
|
#
|
|
################################################################
|
|
|
|
|
|
FROM python:3.11.3-bullseye
|
|
|
|
# set the working directory
|
|
WORKDIR /app
|
|
RUN mkdir /app/audio
|
|
RUN mkdir /app/rnnoise
|
|
|
|
# Install Packages
|
|
RUN apt-get update
|
|
RUN apt-get -y install cmake build-essential ffmpeg git
|
|
|
|
# RNNOISE
|
|
RUN cd /app/rnnoise
|
|
RUN git clone https://gitlab.xiph.org/xiph/rnnoise.git
|
|
RUN (cd /app/rnnoise && ./autogen.sh)
|
|
RUN (cd /app/rnnoise && ./configure)
|
|
RUN (cd /app/rnnoise && make)
|
|
RUN (cd /app/rnnoise && make install)
|
|
|
|
# install dependencies
|
|
COPY ./requirements.txt /app
|
|
RUN pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --no-cache-dir --upgrade -r requirements.txt
|
|
|
|
# copy the scripts to the folder
|
|
COPY . /app
|
|
|
|
CMD ["bash", "init.sh"]
|