Files
openedai-speech/Dockerfile.min
2024-08-21 17:24:40 -04:00

26 lines
629 B
Docker

FROM python:3.11-slim
ARG TARGETPLATFORM
RUN <<EOF
apt-get update
apt-get install --no-install-recommends -y curl ffmpeg build-essential
if [ "$TARGETPLATFORM" != "linux/amd64" ]; then
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
fi
apt-get clean
rm -rf /var/lib/apt/lists/*
EOF
ENV PATH="/root/.cargo/bin:${PATH}"
WORKDIR /app
RUN mkdir -p voices config
COPY requirements*.txt /app/
RUN --mount=type=cache,target=/root/.cache/pip pip install -r requirements-min.txt
COPY *.py *.sh *.default.yaml README.md LICENSE lid.176.ftz /app/
ENV TTS_HOME=voices
ENV HF_HOME=voices
CMD bash startup.min.sh