Merge pull request #144 from Dannyzen/fix/dockerfile-install-package

Fix: Dockerfile for ModuleNotFoundError and Volume Write Permissions
This commit is contained in:
sean
2025-05-13 11:26:19 +08:00
committed by GitHub
+5
View File
@@ -38,6 +38,11 @@ RUN git clone https://github.com/ace-step/ACE-Step.git .
RUN pip3 install --no-cache-dir --upgrade pip && \ RUN pip3 install --no-cache-dir --upgrade pip && \
pip3 install --no-cache-dir hf_transfer peft && \ pip3 install --no-cache-dir hf_transfer peft && \
pip3 install --no-cache-dir -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cu126 pip3 install --no-cache-dir -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cu126
RUN pip3 install --no-cache-dir .
# Ensure target directories for volumes exist and have correct initial ownership
RUN mkdir -p /app/outputs /app/checkpoints /app/logs && \
chown -R appuser:appuser /app/outputs /app/checkpoints /app/logs
# Change ownership of app files to appuser # Change ownership of app files to appuser
RUN chown -R appuser:appuser /app RUN chown -R appuser:appuser /app