This commit is contained in:
Niklas Müller 2024-12-01 18:12:39 +01:00
commit bf12747492
7 changed files with 290 additions and 0 deletions

40
Dockerfile Normal file
View file

@ -0,0 +1,40 @@
################################################################
#
# 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"]