forked from fedirz/parler-tts-server
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.dev
More file actions
24 lines (24 loc) · 1.02 KB
/
Dockerfile.dev
File metadata and controls
24 lines (24 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM pytorch/pytorch:2.6.0-cuda12.6-cudnn9-devel
# hadolint ignore=DL3008,DL3015,DL4006
RUN apt-get update && \
apt-get install -y git curl software-properties-common
RUN add-apt-repository ppa:deadsnakes/ppa && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y python3.12 python3-distutils && \
curl -sS https://bootstrap.pypa.io/get-pip.py | python3.12 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
WORKDIR /root/parler_tts_server
RUN apt-get update && \
apt-get install -y build-essential gcc g++
RUN export CC=/usr/bin/gcc
RUN export CXX=/usr/bin/g++
RUN pip3.12 install --no-cache-dir --no-deps git+https://github.com/huggingface/parler-tts.git
COPY ./model_requirements.txt .
RUN pip3.12 install --no-cache-dir -r model_requirements.txt
COPY ./server_requirements.txt .
RUN pip3.12 install --no-cache-dir -r server_requirements.txt
COPY ./parler_tts_server ./parler_tts_server
CMD ["uvicorn", "parler_tts_server.main_fast:app"]
ENV UVICORN_HOST=0.0.0.0
ENV UVICORN_PORT=8000