Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -1,17 +1,17 @@
|
|
1 |
-
# Use
|
2 |
FROM python:3.9-slim
|
3 |
|
4 |
-
# Set environment variables to accept the TTS licenses
|
5 |
ENV TTS_ACCEPT_TOS=1
|
6 |
ENV TTS_LICENSE_ACCEPT=true
|
7 |
ENV COQUI_STUDIO_LICENSE=1
|
8 |
ENV COQUI_LICENSE_AGREEMENT=n
|
9 |
-
ENV NUMBA_DISABLE_CACHING=1
|
10 |
|
11 |
# Set the working directory in the container
|
12 |
WORKDIR /app
|
13 |
|
14 |
-
# Install system dependencies
|
15 |
RUN apt-get update && apt-get install -y \
|
16 |
libsndfile1 \
|
17 |
libasound2-dev \
|
|
|
1 |
+
# Use an official Python runtime as a parent image
|
2 |
FROM python:3.9-slim
|
3 |
|
4 |
+
# Set environment variables to accept the TTS licenses and handle numba caching issues
|
5 |
ENV TTS_ACCEPT_TOS=1
|
6 |
ENV TTS_LICENSE_ACCEPT=true
|
7 |
ENV COQUI_STUDIO_LICENSE=1
|
8 |
ENV COQUI_LICENSE_AGREEMENT=n
|
9 |
+
ENV NUMBA_DISABLE_CACHING=1 # Disable numba caching to avoid issues
|
10 |
|
11 |
# Set the working directory in the container
|
12 |
WORKDIR /app
|
13 |
|
14 |
+
# Install system dependencies for librosa
|
15 |
RUN apt-get update && apt-get install -y \
|
16 |
libsndfile1 \
|
17 |
libasound2-dev \
|