Merge pull request #144 from Dannyzen/fix/dockerfile-install-package
Fix: Dockerfile for ModuleNotFoundError and Volume Write Permissions
This commit is contained in:
@@ -38,6 +38,11 @@ RUN git clone https://github.com/ace-step/ACE-Step.git .
|
||||
RUN pip3 install --no-cache-dir --upgrade pip && \
|
||||
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
|
||||
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
|
||||
RUN chown -R appuser:appuser /app
|
||||
|
||||
Reference in New Issue
Block a user