mojad121 commited on
Commit
b687a68
·
verified ·
1 Parent(s): 118e098

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -5
Dockerfile CHANGED
@@ -3,17 +3,22 @@ FROM python:3.9-slim
3
  WORKDIR /app
4
 
5
  RUN apt-get update && apt-get install -y \
 
 
 
6
  ffmpeg \
7
  libsndfile1 \
8
- git \
9
- curl && rm -rf /var/lib/apt/lists/*
 
 
 
 
 
10
 
11
  COPY requirements.txt ./
12
  COPY src/ ./src/
13
 
14
- RUN mkdir /app/cache && chmod 777 /app/cache
15
- ENV TRANSFORMERS_CACHE=/app/cache
16
-
17
  RUN pip install --no-cache-dir -r requirements.txt
18
 
19
  EXPOSE 8501
 
3
  WORKDIR /app
4
 
5
  RUN apt-get update && apt-get install -y \
6
+ build-essential \
7
+ curl \
8
+ git \
9
  ffmpeg \
10
  libsndfile1 \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+ RUN mkdir -p /app/.cache && chmod -R 777 /app/.cache
14
+
15
+ ENV TRANSFORMERS_CACHE=/app/.cache/huggingface
16
+ ENV HF_HOME=/app/.cache/huggingface
17
+ ENV TORCH_HOME=/app/.cache/torch
18
 
19
  COPY requirements.txt ./
20
  COPY src/ ./src/
21
 
 
 
 
22
  RUN pip install --no-cache-dir -r requirements.txt
23
 
24
  EXPOSE 8501