renator commited on
Commit
a0f6c29
β€’
1 Parent(s): 2664b59

allow permission

Browse files
Dockerfile CHANGED
@@ -10,7 +10,6 @@ RUN apt-get update \
10
  && pip install --upgrade pip
11
 
12
  # Install PyTorch
13
- # Note: Replace the next line with the correct command to install the PyTorch version compatible with your deepspeed version
14
  RUN pip install torch
15
 
16
  # Install other dependencies from requirements.txt
@@ -23,20 +22,26 @@ RUN pip list
23
  # Copy the rest of your application's code
24
  COPY . /app/
25
 
26
- # Replace the librosa notation.py with notation.py from your project
27
- COPY notation.py /usr/local/lib/python3.10/site-packages/librosa/core/notation.py
28
- COPY audio.py /usr/local/lib/python3.10/site-packages/librosa/core/audio.py
29
- COPY constantq.py /usr/local/lib/python3.10/site-packages/librosa/core/constantq.py
30
- COPY filters.py /usr/local/lib/python3.10/site-packages/librosa/filters.py
31
- COPY sequence.py /usr/local/lib/python3.10/site-packages/librosa/sequence.py
 
 
 
32
  COPY utils.py /usr/local/lib/python3.10/site-packages/librosa/feature/utils.py
33
- COPY utils/utils.py /usr/local/lib/python3.10/site-packages/librosa/util/utils.py
34
- COPY matching.py /usr/local/lib/python3.10/site-packages/librosa/util/matching.py
35
- COPY spectrum.py /usr/local/lib/python3.10/site-packages/librosa/core/spectrum.py
36
- COPY pitch.py /usr/local/lib/python3.10/site-packages/librosa/core/pitch.py
37
- # RUN cd /tmp && mkdir cache1
38
 
 
39
  ENV NUMBA_CACHE_DIR=/tmp
 
 
40
 
41
  # Expose the port your app runs on
42
  EXPOSE 7860
 
10
  && pip install --upgrade pip
11
 
12
  # Install PyTorch
 
13
  RUN pip install torch
14
 
15
  # Install other dependencies from requirements.txt
 
22
  # Copy the rest of your application's code
23
  COPY . /app/
24
 
25
+ # Set the correct permissions for the copied files
26
+ RUN chmod -R 777 /app
27
+
28
+ # Replace the librosa files with your custom versions and set permissions
29
+ COPY packages/notation.py /usr/local/lib/python3.10/site-packages/librosa/core/notation.py
30
+ COPY packages/audio.py /usr/local/lib/python3.10/site-packages/librosa/core/audio.py
31
+ COPY packages/constantq.py /usr/local/lib/python3.10/site-packages/librosa/core/constantq.py
32
+ COPY packages/filters.py /usr/local/lib/python3.10/site-packages/librosa/filters.py
33
+ COPY packages/sequence.py /usr/local/lib/python3.10/site-packages/librosa/sequence.py
34
  COPY utils.py /usr/local/lib/python3.10/site-packages/librosa/feature/utils.py
35
+ COPY packages/utils.py /usr/local/lib/python3.10/site-packages/librosa/util/utils.py
36
+ COPY packages/matching.py /usr/local/lib/python3.10/site-packages/librosa/util/matching.py
37
+ COPY packages/spectrum.py /usr/local/lib/python3.10/site-packages/librosa/core/spectrum.py
38
+ COPY packages/pitch.py /usr/local/lib/python3.10/site-packages/librosa/core/pitch.py
39
+ RUN chmod -R 777 /usr/local/lib/python3.10/site-packages/librosa
40
 
41
+ # Set the environment variable for the NUMBA cache directory
42
  ENV NUMBA_CACHE_DIR=/tmp
43
+ # Ensure the tmp directory is writable
44
+ RUN chmod 777 /tmp
45
 
46
  # Expose the port your app runs on
47
  EXPOSE 7860
audio.py β†’ packages/audio.py RENAMED
File without changes
constantq.py β†’ packages/constantq.py RENAMED
File without changes
filters.py β†’ packages/filters.py RENAMED
File without changes
matching.py β†’ packages/matching.py RENAMED
File without changes
notation.py β†’ packages/notation.py RENAMED
File without changes
pitch.py β†’ packages/pitch.py RENAMED
File without changes
sequence.py β†’ packages/sequence.py RENAMED
File without changes
spectrum.py β†’ packages/spectrum.py RENAMED
File without changes
{utils β†’ packages}/utils.py RENAMED
File without changes