Files
2025-09-18 21:56:25 +08:00

22 lines
792 B
Plaintext

FROM maca-c500-pytorch:2.33.0.6-torch2.6-py310-ubuntu24.04-amd64
WORKDIR /workspace
ENV CONDA_DIR=/opt/conda
ENV PATH=${CONDA_DIR}/bin:${PATH}
USER root
RUN set -eux; \
chmod 1777 /tmp; \
mkdir -p /var/tmp/apt-tmp && chmod 1777 /var/tmp/apt-tmp; \
apt-get -o Dir::Temp::=/var/tmp/apt-tmp update && \
DEBIAN_FRONTEND=noninteractive apt-get -o Dir::Temp::=/var/tmp/apt-tmp install -y --no-install-recommends espeak-ng && \
rm -rf /var/lib/apt/lists/* /var/tmp/apt-tmp
COPY requirements_kokoro.txt constraints_kokoro.txt kokoro_server.py en_core_web_sm-3.8.0.tar.gz /workspace/
RUN pip install -r requirements_kokoro.txt -c constraints_kokoro.txt
RUN pip install en_core_web_sm-3.8.0.tar.gz
COPY launch_kokoro.sh /workspace/
ENTRYPOINT ["/bin/bash", "launch_kokoro.sh"]