Clear-Voice-Enhancer / Dockerfile
arjunbroepic's picture
Create Dockerfile
98125fa verified
raw
history blame contribute delete
543 Bytes
FROM python:3.10-slim
# Install system audio utilities
RUN apt-get update && apt-get install -y \
ffmpeg \
git \
&& rm -rf /var/lib/apt/lists/*
# Set up user permissions for Hugging Face Spaces
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
# Install dependencies
COPY --chown=user requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application files
COPY --chown=user . .
# Expose port and run application
CMD ["python", "app.py"]