Spaces:
Running
Running
Acelle Krislette Rosales
commited on
Commit
·
e272200
1
Parent(s):
cd60c73
Please work
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
|
@@ -33,6 +33,9 @@ RUN python3.11 -m pip install poetry && \
|
|
| 33 |
poetry config virtualenvs.create false && \
|
| 34 |
poetry install --only=main
|
| 35 |
|
|
|
|
|
|
|
|
|
|
| 36 |
# Copy application code
|
| 37 |
COPY src/ ./src/
|
| 38 |
COPY app/ ./app/
|
|
|
|
| 33 |
poetry config virtualenvs.create false && \
|
| 34 |
poetry install --only=main
|
| 35 |
|
| 36 |
+
# Precompile librosa functions AFTER installation
|
| 37 |
+
RUN python3.11 -c "import librosa; import numpy as np; librosa.stft(np.random.randn(1024))"
|
| 38 |
+
|
| 39 |
# Copy application code
|
| 40 |
COPY src/ ./src/
|
| 41 |
COPY app/ ./app/
|