###############################################################################
# Dockerfile used to make gitlab.linphone.org:4567/bc/public/linphone-sdk/bc-dev-rocky8-test-liblinphone:20230914_gdb_toolset_12_sdk
###############################################################################

ARG FROM_IMAGE_TAG=20230914_gdb_toolset_12_sdk

FROM gitlab.linphone.org:4567/bc/public/linphone-sdk/bc-dev-rocky8:$FROM_IMAGE_TAG

LABEL org.opencontainers.image.authors="Mickaël Turnel <mickael.turnel@belledonne-communications.com>"

# Install mediastreamer test dependencies
RUN sudo dnf -y install alsa-utils pulseaudio

#Getting dependencies to run tests headlessly
RUN sudo dnf -y install Xvfb
#failing, need to find a workaround
#RUN modprobe snd-dummy

COPY --chmod=0755 link-audio-group-docker.sh /usr/local/sbin/

ENTRYPOINT ["/usr/local/sbin/link-audio-group-docker.sh"]

SHELL ["/bin/bash", "-c"]
