FROM amd64/ubuntu

WORKDIR    /root
ENV        LANG en_US.UTF-8
ENV        LANGUAGE en_US:en
# ENV        LC_ALL en_US.UTF-8

# Update and install common packages
RUN        apt -y update
RUN        DEBIAN_FRONTEND="noninteractive" apt -y upgrade
RUN        DEBIAN_FRONTEND="noninteractive" apt -y install software-properties-common
RUN        apt -y install curl git tar zip
RUN        apt -y install gcc make nano wget dos2unix ffmpeg libarchive-dev squashfs-tools

# centos libarchive-devel 
# RUN        apt -y install epel-release
# RUN        dnf -y install dnf-plugins-core
# RUN        dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
# RUN        dnf config-manager --set-enabled PowerTools
# RUN        apt -y install libarchive-devel

# python 2 or python3 
RUN        apt -y install python
RUN        curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
RUN        python get-pip.py
# #RUN        python3 -m venv /var/app
# RUN        pip install --upgrade pip
# RUN        pip install pydub
# RUN        pip install numpy
# RUN        pip install spicy 
# RUN        ln -s /usr/bin/python3.8 /usr/bin/python

# centos ffmpeg
# RUN        wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz
# RUN        tar -xvf ffmpeg-release-amd64-static.tar.xz
# RUN        mv ffmpeg-4.3.1-amd64-static/ffmpeg /usr/local/bin
# RUN        mv ffmpeg-4.3.1-amd64-static/ffprobe /usr/local/bin
# RUN        ln -s /usr/local/bin/ffmpeg /usr/bin/ffmpeg
# RUN        ln -s /usr/local/bin/ffprobe /usr/bin/ffprobe

# singularity
ADD        singularity.sh /root
RUN        chown root /root/singularity.sh
RUN        chmod +x /root/singularity.sh 
RUN        /root/singularity.sh

ADD        NUSAutoLyrixAlign.zip /root
RUN        unzip /root/NUSAutoLyrixAlign.zip
ADD        example.sh /root
RUN        chown root /root/example.sh
RUN        chmod +x /root/example.sh 
CMD        ["echo", "ok"]