anuj-exe commited on
Commit
ace200d
·
verified ·
1 Parent(s): f103d08

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ RUN apt-get update && apt-get install -y git ffmpeg libsndfile1
4
+
5
+ RUN useradd -m user
6
+ USER user
7
+ ENV PATH="/home/user/.local/bin:$PATH"
8
+ ENV HF_HOME="/home/user/.cache/huggingface"
9
+
10
+ WORKDIR /app
11
+
12
+ COPY --chown=user requirements.txt .
13
+ RUN pip install --no-cache-dir -r requirements.txt
14
+
15
+ COPY --chown=user . /app
16
+
17
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]