Update Dockerfile
Browse files- Dockerfile +6 -5
Dockerfile
CHANGED
@@ -12,13 +12,14 @@ COPY . .
|
|
12 |
# Install Python dependencies
|
13 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
14 |
|
15 |
-
# Set permissions for
|
16 |
-
RUN mkdir -p /
|
17 |
-
&& chmod -R 777 /usr/local/lib/python3.10/site-packages/unidic
|
18 |
|
19 |
# Resolve numba caching issue by setting the NUMBA_CACHE_DIR environment variable
|
20 |
ENV NUMBA_CACHE_DIR=/tmp/numba_cache
|
21 |
-
RUN mkdir -p /tmp/numba_cache
|
22 |
-
|
|
|
|
|
23 |
|
24 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
12 |
# Install Python dependencies
|
13 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
14 |
|
15 |
+
# Set permissions for directories used by TTS
|
16 |
+
RUN mkdir -p /app/.local && chmod -R 777 /app/.local
|
|
|
17 |
|
18 |
# Resolve numba caching issue by setting the NUMBA_CACHE_DIR environment variable
|
19 |
ENV NUMBA_CACHE_DIR=/tmp/numba_cache
|
20 |
+
RUN mkdir -p /tmp/numba_cache && chmod -R 777 /tmp/numba_cache
|
21 |
+
|
22 |
+
# Set environment variable for the model download path
|
23 |
+
ENV XDG_CACHE_HOME=/app/.local
|
24 |
|
25 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|