-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
20 lines (20 loc) · 917 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM pytorch/pytorch:2.3.0-cuda12.1-cudnn8-runtime
# hadolint ignore=DL3008,DL3015,DL4006
RUN apt-get update && \
apt-get install -y git curl software-properties-common && \
add-apt-repository ppa:deadsnakes/ppa && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y python3.12 python3.12-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 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:app"]
ENV UVICORN_HOST=0.0.0.0
ENV UVICORN_PORT=8000