Numberblocks1Voice / Dockerfile
ayf3's picture
Upload Dockerfile with huggingface_hub
5749c4e verified
raw
history blame
406 Bytes
FROM python:3.11-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
git ffmpeg libsndfile1 && \
rm -rf /var/lib/apt/lists/*
# Create non-root user for HF Spaces
RUN useradd -m -u 1000 user
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .
USER user
ENV GRADIO_SERVER_NAME="0.0.0.0"
EXPOSE 7860
CMD ["python", "app.py"]