Kokoro-API-2 / Dockerfile
Yaron Koresh
Update Dockerfile
5eac769 verified
raw
history blame
560 Bytes
FROM nvidia/cuda
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PYTHONUNBUFFERED=1 \
PYTHONPATH=$HOME/app/cpython \
GRADIO_ALLOW_FLAGGING=never \
GRADIO_NUM_PORTS=1 \
GRADIO_SERVER_NAME=0.0.0.0 \
GRADIO_THEME=huggingface \
SYSTEM=spaces
WORKDIR $HOME/app
COPY --chown=user . $HOME/app
RUN curl -sL "https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh" > "Miniconda3.sh"
CMD ["Miniconda3.sh", "-b"]
RUN source /home/miniconda3/bin/activate
RUN conda env create -f /code/env.yml
CMD ["./start.sh"]