audio-stream / Dockerfile
Xenobd's picture
Update Dockerfile
7a8cd4d verified
raw
history blame contribute delete
485 Bytes
FROM python:3.10-slim
# Install git
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Clone the repo
RUN git clone https://huggingface.co/KevinAHM/pocket-tts-onnx
# Copy Space files
COPY . /app
# Copy app.py into the repo workdir
RUN cp /app/app.py /app/pocket-tts-onnx/app.py
# Move into repo
WORKDIR /app/pocket-tts-onnx
# Install deps
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install Flask
CMD ["python3", "app.py"]