hafsaabd82 commited on
Commit
c09c7a4
·
verified ·
1 Parent(s): 91279ce

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -1
Dockerfile CHANGED
@@ -1,8 +1,17 @@
1
  FROM python:3.10-slim
 
 
 
 
2
 
 
3
  RUN apt-get update && apt-get install -y ffmpeg libsndfile1 git && rm -rf /var/lib/apt/lists/*
 
 
 
 
4
 
5
- RUN pip install --upgrade pip
6
  RUN pip install --no-cache-dir \
7
  transformers==4.33.3 \
8
  pyannote.audio==2.1.1 \
 
1
  FROM python:3.10-slim
2
+ RUN useradd -m -u 1000 user
3
+ ENV HOME=/home/user \
4
+ PATH=/home/user/.local/bin:$PATH \
5
+ DEBIAN_FRONTEND=noninteractive
6
 
7
+ WORKDIR /app
8
  RUN apt-get update && apt-get install -y ffmpeg libsndfile1 git && rm -rf /var/lib/apt/lists/*
9
+ ARG HF_TOKEN
10
+ ENV HUGGING_FACE_HUB_TOKEN=${HF_TOKEN}
11
+
12
+ USER user
13
 
14
+ RUN pip install --no-cache-dir "pip<24.1"
15
  RUN pip install --no-cache-dir \
16
  transformers==4.33.3 \
17
  pyannote.audio==2.1.1 \