Spaces:
Runtime error
Runtime error
FROM python:3.9-slim | |
RUN useradd -m -u 1000 user | |
USER user | |
ENV HOME=/home/user \ | |
PATH=/home/user/.local/bin:${PATH} | |
WORKDIR ${HOME}/app | |
COPY --chown=1000 requirements.txt /tmp/requirements.txt | |
# install from develop branch | |
RUN pip install -qq https://github.com/pyannote/pyannote-audio/archive/refs/heads/develop.zip | |
RUN pip install --no-cache-dir -r /tmp/requirements.txt | |
COPY --chown=1000 . ${HOME}/app | |
ENV PYTHONPATH=${HOME}/app \ | |
PYTHONUNBUFFERED=1 \ | |
GRADIO_ALLOW_FLAGGING=never \ | |
GRADIO_NUM_PORTS=1 \ | |
GRADIO_SERVER_NAME=0.0.0.0 \ | |
GRADIO_THEME=huggingface \ | |
SYSTEM=spaces \ | |
GRADIO_SERVER_PORT=9000 | |
EXPOSE 9000 | |
CMD ["python","app.py"] |