# ACE-Step 1.5 - Hugging Face Docker Space (GPU) # Uses CUDA base; no GPU at build time. Port 7860 for Gradio. # See https://huggingface.co/docs/hub/spaces-sdks-docker FROM nvidia/cuda:12.4.0-cudnn8-runtime-ubuntu22.04 ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update && apt-get install -y --no-install-recommends \ python3 python3-pip python3-venv python3-dev \ git build-essential \ && rm -rf /var/lib/apt/lists/* # HF Spaces run as user 1000 RUN useradd -m -u 1000 user USER user ENV HOME=/home/user PATH=/home/user/.local/bin:$PATH WORKDIR /home/user/app # Install Python deps (no GPU ops at build time) COPY --chown=user requirements.txt . RUN pip install --no-cache-dir --upgrade pip && \ pip install --no-cache-dir -r requirements.txt # App code (acestep/, configs/, app.py, etc.) - copied from Space repo root COPY --chown=user . . EXPOSE 7860 CMD ["python3", "app.py"]