sksameermujahid commited on
Commit
66da40a
·
verified ·
1 Parent(s): 36201ab

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -5
Dockerfile CHANGED
@@ -8,21 +8,29 @@ RUN apt-get update && apt-get install -y \
8
  curl \
9
  software-properties-common \
10
  git \
 
 
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
  # Create cache directory with proper permissions
14
- RUN mkdir -p /root/.cache/huggingface && \
15
- chmod -R 777 /root/.cache
 
 
16
 
17
  # Set environment variables
18
- ENV TRANSFORMERS_CACHE=/root/.cache/huggingface
19
- ENV HF_HOME=/root/.cache/huggingface
 
 
 
20
 
21
  # Copy requirements first for better caching
22
  COPY requirements.txt .
23
 
24
  # Install Python dependencies
25
- RUN pip install --no-cache-dir -r requirements.txt
 
26
 
27
  # Copy the rest of the application
28
  COPY . .
 
8
  curl \
9
  software-properties-common \
10
  git \
11
+ ffmpeg \
12
+ libsndfile1 \
13
  && rm -rf /var/lib/apt/lists/*
14
 
15
  # Create cache directory with proper permissions
16
+ RUN mkdir -p /.cache && \
17
+ chmod -R 777 /.cache && \
18
+ mkdir -p /.cache/huggingface && \
19
+ chmod -R 777 /.cache/huggingface
20
 
21
  # Set environment variables
22
+ ENV TRANSFORMERS_CACHE=/.cache/huggingface
23
+ ENV HF_HOME=/.cache/huggingface
24
+ ENV PYTHONUNBUFFERED=1
25
+ ENV DEBIAN_FRONTEND=noninteractive
26
+ ENV HOME=/.cache
27
 
28
  # Copy requirements first for better caching
29
  COPY requirements.txt .
30
 
31
  # Install Python dependencies
32
+ RUN pip install --no-cache-dir --upgrade pip && \
33
+ pip install --no-cache-dir -r requirements.txt
34
 
35
  # Copy the rest of the application
36
  COPY . .