renator commited on
Commit
a86d6f8
·
1 Parent(s): 1c165aa

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -6
Dockerfile CHANGED
@@ -4,10 +4,14 @@ FROM python:3.10.5-slim
4
  # Set the working directory in the container
5
  WORKDIR /app
6
 
7
- # Upgrade pip, install git, MeCab, and their dependencies
8
- RUN apt-get update \
9
- && apt-get install -y git mecab libmecab-dev mecab-ipadic mecab-ipadic-utf8 gcc \
10
- && pip install --upgrade pip
 
 
 
 
11
 
12
  # Install PyTorch
13
  # Note: Replace the next line with the correct command to install the PyTorch version compatible with your deepspeed version
@@ -26,8 +30,8 @@ COPY . /app/
26
  # Set the environment variable for Coqui TTS
27
  ENV COQUI_TOS_AGREED=1
28
 
29
- # Install necessary build tools and libraries
30
- RUN apt-get install -y build-essential llvm llvm-dev
31
 
32
  # Install numba and llvmlite
33
  RUN pip install numba==0.48 llvmlite
 
4
  # Set the working directory in the container
5
  WORKDIR /app
6
 
7
+ # Update package list and upgrade packages
8
+ RUN apt-get update -y && apt-get upgrade -y
9
+
10
+ # Install necessary system packages
11
+ RUN apt-get install -y git mecab libmecab-dev mecab-ipadic mecab-ipadic-utf8 gcc llvm-7 llvm-7-dev
12
+
13
+ # Upgrade pip
14
+ RUN pip install --upgrade pip
15
 
16
  # Install PyTorch
17
  # Note: Replace the next line with the correct command to install the PyTorch version compatible with your deepspeed version
 
30
  # Set the environment variable for Coqui TTS
31
  ENV COQUI_TOS_AGREED=1
32
 
33
+ # Set LLVM_CONFIG environment variable
34
+ ENV LLVM_CONFIG=/usr/bin/llvm-config-7
35
 
36
  # Install numba and llvmlite
37
  RUN pip install numba==0.48 llvmlite