rvc_webui / Dockerfile
aryo100's picture
update docker
28b5a9e
raw
history blame contribute delete
623 Bytes
FROM python:3.10-bullseye
WORKDIR /app
COPY . .
RUN apt-get update && \
apt-get install -y --no-install-recommends \
git \
ffmpeg \
libsndfile1 \
build-essential \
wget \
curl \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir -r requirements/main.txt
# Environment models directory
ENV MODELS_DIR=/data/models
ENV NUMBA_CACHE_DIR=/tmp/numba_cache
ENV NUMBA_DISABLE_CACHING=1
# Buat folder models & kasih permission
RUN mkdir -p $MODELS_DIR && chmod -R 777 $MODELS_DIR
EXPOSE 7860
CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]