Numberblocks1Voice / Dockerfile
ayf3's picture
Upload Dockerfile with huggingface_hub
f22431f verified
raw
history blame
561 Bytes
FROM python:3.10-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
ffmpeg \
libsndfile1 \
&& rm -rf /var/lib/apt/lists/*
RUN useradd -m -u 1000 user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH \
PYTHONUNBUFFERED=1 \
PYTHONIOENCODING=UTF-8 \
HF_HOME=/home/user/.cache/huggingface \
PORT=7860
WORKDIR /home/user/app
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
COPY app.py .
USER user
CMD ["python", "app.py"]