Subh775 commited on
Commit
0730a19
·
verified ·
1 Parent(s): f782dc8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +47 -3
Dockerfile CHANGED
@@ -1,24 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  FROM python:3.10-slim
2
 
3
  ENV PYTHONDONTWRITEBYTECODE=1
4
  ENV PYTHONUNBUFFERED=1
 
 
 
5
 
6
  WORKDIR /app
7
 
 
8
  RUN apt-get update && apt-get install -y --no-install-recommends \
9
  build-essential \
10
  ffmpeg \
11
  libsndfile1 \
12
- && rm -rf /var/lib/apt/lists/*
 
 
 
 
 
 
 
 
 
13
 
 
14
  COPY requirements.txt /app/requirements.txt
15
  RUN pip install --upgrade pip setuptools wheel
16
  RUN pip install --no-cache-dir -r /app/requirements.txt
17
 
18
- # copy app
19
  COPY . /app
20
 
21
- # expose port
 
 
 
22
  EXPOSE 7860
23
 
24
  # Launch
 
1
+ # FROM python:3.10-slim
2
+
3
+ # ENV PYTHONDONTWRITEBYTECODE=1
4
+ # ENV PYTHONUNBUFFERED=1
5
+
6
+ # WORKDIR /app
7
+
8
+ # RUN apt-get update && apt-get install -y --no-install-recommends \
9
+ # build-essential \
10
+ # ffmpeg \
11
+ # libsndfile1 \
12
+ # && rm -rf /var/lib/apt/lists/*
13
+
14
+ # COPY requirements.txt /app/requirements.txt
15
+ # RUN pip install --upgrade pip setuptools wheel
16
+ # RUN pip install --no-cache-dir -r /app/requirements.txt
17
+
18
+ # # copy app
19
+ # COPY . /app
20
+
21
+ # # expose port
22
+ # EXPOSE 7860
23
+
24
+ # # Launch
25
+ # CMD ["/bin/bash", "start.sh"]
26
+
27
+
28
  FROM python:3.10-slim
29
 
30
  ENV PYTHONDONTWRITEBYTECODE=1
31
  ENV PYTHONUNBUFFERED=1
32
+ ENV OMP_NUM_THREADS=4
33
+ ENV MKL_NUM_THREADS=4
34
+ ENV OPENBLAS_NUM_THREADS=4
35
 
36
  WORKDIR /app
37
 
38
+ # Install system dependencies
39
  RUN apt-get update && apt-get install -y --no-install-recommends \
40
  build-essential \
41
  ffmpeg \
42
  libsndfile1 \
43
+ libglib2.0-0 \
44
+ libsm6 \
45
+ libxext6 \
46
+ libxrender-dev \
47
+ libgomp1 \
48
+ fontconfig \
49
+ fonts-dejavu-core \
50
+ && rm -rf /var/lib/apt/lists/* \
51
+ && mkdir -p /tmp/.fontconfig /tmp/.matplotlib \
52
+ && chmod 777 /tmp/.fontconfig /tmp/.matplotlib
53
 
54
+ # Copy and install Python dependencies
55
  COPY requirements.txt /app/requirements.txt
56
  RUN pip install --upgrade pip setuptools wheel
57
  RUN pip install --no-cache-dir -r /app/requirements.txt
58
 
59
+ # Copy application files
60
  COPY . /app
61
 
62
+ # Create tmp directory for model weights
63
+ RUN mkdir -p /tmp
64
+
65
+ # Expose port
66
  EXPOSE 7860
67
 
68
  # Launch