rvc_api / Dockerfile
aryo100's picture
update api & docker
033e0f5
raw
history blame contribute delete
425 Bytes
FROM python:3.10
WORKDIR /app
COPY . .
RUN apt-get update && apt-get install -y ffmpeg
RUN pip install --no-cache-dir -r requirements/main.txt
EXPOSE 7860
ENV TEMP_DIR=/app/outputs
ENV MODELS_DIR=/app/models
ENV NUMBA_CACHE_DIR=/tmp/numba_cache
ENV NUMBA_DISABLE_CACHING=1
RUN mkdir -p $TEMP_DIR
RUN chmod -R 777 $MODELS_DIR && chmod -R 777 $TEMP_DIR
CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]