Kokoro-API-1 / Dockerfile
Yaron Koresh
Update Dockerfile
e1587e4 verified
raw
history blame
1.28 kB
FROM ubuntu:devel
USER root
ENV HOME=/root \
PYTHONUNBUFFERED=1 \
GRADIO_ALLOW_FLAGGING=never \
GRADIO_NUM_PORTS=1 \
GRADIO_SERVER_NAME=0.0.0.0 \
GRADIO_THEME=huggingface \
SYSTEM=spaces
COPY --chown=root --chmod=a+xrw . ~/app
WORKDIR ~/app
run apt-get update > /dev/null
run apt-get install -y git curl nvidia-cuda-toolkit wget git-lfs ffmpeg libsm6 libxext6 cmake rsync gcc make python3-venv python3-pip libgl1 python3 libglx-mesa0
run mkdir -p ~/miniconda
run wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda/install.sh
run bash ~/miniconda/install.sh -b -u -p ~/miniconda
run ~/miniconda/bin/conda init bash
run ~/miniconda/bin/activate
run ~/miniconda/bin/conda env create -f ./env.yml
run git lfs install --force
#run git clone https://github.com/python/cpython
#run cd cpython && ./configure --enable-optimizations --with-lto --prefix=$HOME/app/python --with-system-libmpdec=no > /dev/null
#run cd cpython && make > /dev/null
#run cd cpython && make test > /dev/null
#run cd cpython && make install > /dev/null
#run cd cpython && make clean
run PATH="${PATH:+${PATH}:}$HOME/miniconda/bin"
#run pip3 install --upgrade --no-cache-dir -r deps.txt
EXPOSE 7860
ENTRYPOINT ["python3", "./code.py"]