VoxMorph / Dockerfile
Robobyte's picture
Update Dockerfile
b3613c9 verified
raw
history blame contribute delete
791 Bytes
# Use a compatible Python version
FROM python:3.10.9-slim
# Set working directory
WORKDIR /app
# Copy your requirements
COPY requirements.txt /tmp/requirements.txt
# Install system dependencies needed for audio and building packages
RUN apt-get update && apt-get install -y \
build-essential \
libsndfile1 \
git \
&& rm -rf /var/lib/apt/lists/*
# Install piper-phonemize first from GitHub
RUN pip install --no-cache-dir git+https://github.com/rhasspy/piper-phonemize.git
# Install the rest of your Python dependencies
RUN pip install --no-cache-dir -r /tmp/requirements.txt \
"gradio[oauth,mcp]==6.9.0" \
"uvicorn>=0.14.0" \
"websockets>=10.4" \
spaces
# Copy your app code
COPY . /app
# Set the default command to run your app
CMD ["python", "app.py"]