Imsachinsingh00 commited on
Commit
0e8f1bc
·
1 Parent(s): 0579edd

Updated Dockerfile and requirements for Hugging Face

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -9,7 +9,8 @@ RUN apt-get update && apt-get install -y \
9
  libportaudio2 \
10
  portaudio19-dev \
11
  ffmpeg \
12
- && apt-get clean
 
13
 
14
  # Install Python dependencies
15
  COPY Web_app/requirements.txt ./requirements.txt
@@ -19,6 +20,9 @@ RUN pip install --no-cache-dir -r requirements.txt
19
  # Copy application code
20
  COPY Web_app .
21
 
 
 
 
22
  # Expose the port Flask runs on
23
  EXPOSE 5000
24
 
 
9
  libportaudio2 \
10
  portaudio19-dev \
11
  ffmpeg \
12
+ && rm -rf /var/lib/apt/lists/*
13
+
14
 
15
  # Install Python dependencies
16
  COPY Web_app/requirements.txt ./requirements.txt
 
20
  # Copy application code
21
  COPY Web_app .
22
 
23
+ # Set environment variable to avoid matplotlib config errors
24
+ ENV MPLCONFIGDIR=/tmp
25
+
26
  # Expose the port Flask runs on
27
  EXPOSE 5000
28