Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +7 -4
Dockerfile
CHANGED
@@ -4,12 +4,15 @@ FROM python:3.9-slim
|
|
4 |
RUN apt-get update && apt-get install -y espeak-ng libsndfile1
|
5 |
|
6 |
# Set up cache directories
|
7 |
-
ENV
|
8 |
-
|
9 |
-
|
|
|
|
|
10 |
|
11 |
# Create cache directory and set permissions
|
12 |
-
RUN mkdir -p /app/cache
|
|
|
13 |
|
14 |
# Set working directory
|
15 |
WORKDIR /app
|
|
|
4 |
RUN apt-get update && apt-get install -y espeak-ng libsndfile1
|
5 |
|
6 |
# Set up cache directories
|
7 |
+
ENV HF_HOME=/app/cache \
|
8 |
+
XDG_CACHE_HOME=/app/cache \
|
9 |
+
PULSE_SERVER="unix:/tmp/pulse.sock" \
|
10 |
+
PYTHONUSERBASE=/app/python-deps \
|
11 |
+
PATH="/app/python-deps/bin:$PATH"
|
12 |
|
13 |
# Create cache directory and set permissions
|
14 |
+
RUN mkdir -p /app/cache /app/python-deps && \
|
15 |
+
chmod -R 777 /app
|
16 |
|
17 |
# Set working directory
|
18 |
WORKDIR /app
|