yukee1992 commited on
Commit
5a28d80
·
verified ·
1 Parent(s): e6bf69d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -2
Dockerfile CHANGED
@@ -8,8 +8,9 @@ ENV PYTHONDONTWRITEBYTECODE=1
8
  ENV PYTHONUNBUFFERED=1
9
  ENV MPLCONFIGDIR=/tmp/matplotlib-cache
10
 
11
- # Create cache directories
12
- RUN mkdir -p /tmp/voices /tmp/output $MPLCONFIGDIR && chmod 777 /tmp/voices /tmp/output $MPLCONFIGDIR
 
13
 
14
  # Install system dependencies
15
  RUN apt-get update && apt-get install -y \
@@ -18,6 +19,9 @@ RUN apt-get update && apt-get install -y \
18
  libsndfile1 \
19
  && rm -rf /var/lib/apt/lists/*
20
 
 
 
 
21
  # Copy requirements first for better caching
22
  COPY requirements.txt .
23
 
 
8
  ENV PYTHONUNBUFFERED=1
9
  ENV MPLCONFIGDIR=/tmp/matplotlib-cache
10
 
11
+ # Create cache directories first (this helps with caching)
12
+ RUN mkdir -p /tmp/voices /tmp/output /tmp/matplotlib-cache && \
13
+ chmod 777 /tmp/voices /tmp/output /tmp/matplotlib-cache
14
 
15
  # Install system dependencies
16
  RUN apt-get update && apt-get install -y \
 
19
  libsndfile1 \
20
  && rm -rf /var/lib/apt/lists/*
21
 
22
+ # Upgrade pip to handle dependency resolution better
23
+ RUN pip install --upgrade pip
24
+
25
  # Copy requirements first for better caching
26
  COPY requirements.txt .
27