Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files1234545678891011121314153 unmodified lines19202122182324252622272829FROM python:3.10-slim
ENV PYTHONUNBUFFERED=1ENV HF_HOME=/home/appuser/.cache/huggingfaceENV TORCH_HOME=/home/appuser/.cache/torchENV HF_HOME=/root/.cache/huggingfaceENV TORCH_HOME=/root/.cache/torchENV PIP_NO_CACHE_DIR=1
RUN apt-get update && apt-get install -y ffmpeg git libsndfile1 && rm -rf /var/lib/apt/lists/*RUN apt-get update && apt-get install -y \ ffmpeg \ git \ libsndfile1 \ && rm -rf /var/lib/apt/lists/*
WORKDIR /app
3 unmodified lines
COPY . .
# Run from the js/ subdirectory so relative imports workRUN python js/download_model.pyRUN cd /app/js && python download_model.py
EXPOSE 7860
CMD ["uvicorn","js.app:app","--host","0.0.0.0","--port","7860"]# Launch uvicorn with --app-dir pointing at js/ so it finds app.py as# a top-level module (avoids the js.app package resolution overhead)CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--app-dir", "/app/js"]Dockerfile+12-5