Spaces:
Running on A100
Running on A100
Download Dockerfile from EarthSpeciesProject/NatureLM-Audio: direct link, hf CLI and curl.
- Browser
- Download file 1.2 kB
-
https://huggingface.co/spaces/EarthSpeciesProject/NatureLM-Audio/resolve/515204e76fadf14f7c53eee1094ccc8f6d5e6e84/Dockerfile
- Command line
-
hf download hf://spaces/EarthSpeciesProject/NatureLM-Audio@515204e76fadf14f7c53eee1094ccc8f6d5e6e84/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/EarthSpeciesProject/NatureLM-Audio/resolve/515204e76fadf14f7c53eee1094ccc8f6d5e6e84/Dockerfile
1.2 kB
| FROM nvidia/cuda:12.6.3-cudnn-runtime-ubuntu22.04 | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV UV_NO_DEV=1 | |
| ENV UV_NO_CACHE=1 | |
| env GRADIO_ANALYTICS_ENABLED="False" | |
| COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| git-lfs \ | |
| ffmpeg \ | |
| && apt-get clean \ | |
| && rm -rf /var/lib/apt/lists/* \ | |
| && git lfs install | |
| # TODO: Pin esp-research and esp-data revisions | |
| # TODO: remove hf-app branch once merged | |
| RUN --mount=type=secret,id=GH_TOKEN,mode=0444,required=true \ | |
| git clone -b update-hf-app --single-branch --depth 1 https://$(cat /run/secrets/GH_TOKEN)@github.com/earthspecies/esp-research.git /app/esp-research && \ | |
| git clone --single-branch --depth 1 https://$(cat /run/secrets/GH_TOKEN)@github.com/earthspecies/esp-data.git /app/esp-data | |
| # esp-research installs esp-data from gcloud artifact registry, which is not | |
| # what we want. Instead we modify esp-research to install esp-data directly from | |
| # the clone and then do a sync | |
| WORKDIR /app/esp-research | |
| RUN uv add /app/esp-data | |
| RUN uv sync --frozen | |
| WORKDIR /app/esp-research/projects/NatureLM-audio-hf-app | |
| EXPOSE 7860 | |
| CMD ["uv", "run", "app.py"] | |