khurrameycon commited on
Commit
a59c309
·
verified ·
1 Parent(s): 2ce01cd

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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 TRANSFORMERS_CACHE=/app/cache
8
- ENV HF_HOME=/app/cache
9
- ENV XDG_CACHE_HOME=/app/cache
 
 
10
 
11
  # Create cache directory and set permissions
12
- RUN mkdir -p /app/cache && chmod -R 777 /app
 
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