Spaces:
Paused
Paused
File size: 579 Bytes
9c40165 9ae08c5 9c40165 20ddfa0 9c40165 9ae08c5 9c40165 9ae08c5 20ddfa0 9c40165 9ae08c5 20ddfa0 9ae08c5 20ddfa0 9ae08c5 20ddfa0 9c40165 | 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 python:3.11-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential libffi-dev libssl-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY app/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app/ .
# Copy voices folder into the working directory as 'voices'
COPY voices/ voices/
# *** THIS IS THE FIX ***
ENV VOICE_PATH=/app/voices
# Ensure output directory exists
RUN mkdir -p /output && chmod 777 /output
EXPOSE 7860
CMD ["uvicorn", "piper_tts_server:app", "--host", "0.0.0.0", "--port", "7860"] |