yukee1992 commited on
Commit
ff5cdb3
·
verified ·
1 Parent(s): 46981b4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -12
Dockerfile CHANGED
@@ -7,21 +7,17 @@ RUN apt-get update && apt-get install -y \
7
  curl \
8
  ffmpeg \
9
  libsndfile1 \
10
- git \
11
- build-essential \
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
- # Create necessary directories with proper permissions
15
- RUN mkdir -p /tmp/tts_models /tmp/huggingface /tmp/torch /tmp/voices /tmp/output && \
16
- chmod 777 /tmp/tts_models /tmp/huggingface /tmp/torch /tmp/voices /tmp/output
17
 
18
  # Copy requirements first for better caching
19
  COPY requirements.txt .
20
 
21
  # Install Python dependencies
22
- RUN pip install --upgrade pip && \
23
- pip install --no-cache-dir --upgrade setuptools wheel && \
24
- pip install --no-cache-dir -r requirements.txt
25
 
26
  # Copy application code
27
  COPY app.py .
@@ -33,9 +29,5 @@ USER user
33
  # Expose port
34
  EXPOSE 8000
35
 
36
- # Health check (important for HuggingFace)
37
- HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
38
- CMD curl -f http://localhost:8000/health || exit 1
39
-
40
  # Start the application
41
  CMD ["python", "app.py"]
 
7
  curl \
8
  ffmpeg \
9
  libsndfile1 \
 
 
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
+ # Create necessary directories
13
+ RUN mkdir -p /tmp/voices /tmp/output
 
14
 
15
  # Copy requirements first for better caching
16
  COPY requirements.txt .
17
 
18
  # Install Python dependencies
19
+ RUN pip install --upgrade pip
20
+ RUN pip install --no-cache-dir -r requirements.txt
 
21
 
22
  # Copy application code
23
  COPY app.py .
 
29
  # Expose port
30
  EXPOSE 8000
31
 
 
 
 
 
32
  # Start the application
33
  CMD ["python", "app.py"]