Spaces:
Runtime error
Runtime error
File size: 676 Bytes
df83547 76dce3d 805d284 76dce3d 805d284 76dce3d df83547 b8ee1e0 df83547 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
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"] |