renator commited on
Commit
1878138
·
1 Parent(s): a0f6c29

allow permissions

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -3
Dockerfile CHANGED
@@ -24,6 +24,7 @@ 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
@@ -36,12 +37,14 @@ COPY packages/utils.py /usr/local/lib/python3.10/site-packages/librosa/util/util
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
 
24
 
25
  # Set the correct permissions for the copied files
26
  RUN chmod -R 777 /app
27
+ ENV NUMBA_CACHE_DIR=/tmp
28
 
29
  # Replace the librosa files with your custom versions and set permissions
30
  COPY packages/notation.py /usr/local/lib/python3.10/site-packages/librosa/core/notation.py
 
37
  COPY packages/matching.py /usr/local/lib/python3.10/site-packages/librosa/util/matching.py
38
  COPY packages/spectrum.py /usr/local/lib/python3.10/site-packages/librosa/core/spectrum.py
39
  COPY packages/pitch.py /usr/local/lib/python3.10/site-packages/librosa/core/pitch.py
40
+ RUN chmod -R 777 /usr/local/lib/python3.10/site-packages/librosa \
41
+ && chmod -R 777 /.local \
42
+ && chmod 777 /tmp
43
 
44
  # Set the environment variable for the NUMBA cache directory
45
+
46
  # Ensure the tmp directory is writable
47
+ RUN
48
 
49
  # Expose the port your app runs on
50
  EXPOSE 7860