# ArchLinux base
FROM archlinux:base

ARG RELEASE_VERSION

ENV RELEASE_VERSION=${RELEASE_VERSION}

RUN ["/bin/bash", "-c", "pacman --noconfirm -Sy gcc ffmpeg espeak &&\
    pacman --noconfirm -Sy libsndfile &&\
    pacman --noconfirm -Sy libnsl &&\
    pacman --noconfirm -Syu python python-pip &&\
    ln -s /usr/lib/libffi.so.7 /usr/lib/libffi.so.6 &&\
    python -m pip install wheel &&\
    python -m pip install \"subaligner==${RELEASE_VERSION}\" &&\
    python -m pip install \"subaligner[harmony]==${RELEASE_VERSION}\""]