FROM cr.metax-tech.com/public-library/maca-c500-pytorch:2.33.0.6-torch2.6-py310-ubuntu24.04-amd64

RUN /opt/conda/bin/pip install funasr modelscope huggingface_hub
RUN /opt/conda/bin/pip install openai-whisper

# RUN chmod 1777 -R /tmp && apt update && apt install -y ffmpeg

WORKDIR /opt/app
COPY ./ ./
RUN /opt/conda/bin/pip install -r requirements.txt

EXPOSE 80
ENTRYPOINT ["/opt/conda/bin/python3", "./test_funasr.py"]
