doublesizebed commited on
Commit
b384622
·
1 Parent(s): d18f243

Updates Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -1
Dockerfile CHANGED
@@ -4,10 +4,16 @@ FROM python:3.9-slim
4
  RUN apt-get update && apt-get install -y ffmpeg git && rm -rf /var/lib/apt/lists/*
5
 
6
  WORKDIR /app/chatbot
7
- COPY requirements.txt .
8
  ENV SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True
 
 
 
 
 
 
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
 
11
  # Create writable directories
12
  RUN mkdir -p /data/hf_cache /data/transformers_cache /data/nltk_data /static/audio
13
  RUN chmod -R 777 /static/audio
 
4
  RUN apt-get update && apt-get install -y ffmpeg git && rm -rf /var/lib/apt/lists/*
5
 
6
  WORKDIR /app/chatbot
 
7
  ENV SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True
8
+ RUN apt-get update && apt-get install -y \
9
+ ffmpeg git build-essential python3-dev && \
10
+ rm -rf /var/lib/apt/lists/*
11
+ RUN pip install --no-cache-dir --upgrade pip
12
+ RUN pip install --no-cache-dir Cython
13
+ COPY requirements.txt .
14
  RUN pip install --no-cache-dir -r requirements.txt
15
 
16
+
17
  # Create writable directories
18
  RUN mkdir -p /data/hf_cache /data/transformers_cache /data/nltk_data /static/audio
19
  RUN chmod -R 777 /static/audio