Subh775 commited on
Commit
b6cc5f6
·
verified ·
1 Parent(s): 0838c6b

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -0
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ ENV PYTHONDONTWRITEBYTECODE=1
4
+ ENV PYTHONUNBUFFERED=1
5
+
6
+ WORKDIR /app
7
+
8
+ RUN apt-get update && apt-get install -y --no-install-recommends \
9
+ build-essential \
10
+ ffmpeg \
11
+ libsndfile1 \
12
+ && rm -rf /var/lib/apt/lists/*
13
+
14
+ COPY requirements.txt /app/requirements.txt
15
+ RUN pip install --upgrade pip setuptools wheel
16
+ RUN pip install --no-cache-dir -r /app/requirements.txt
17
+
18
+ # copy app
19
+ COPY . /app
20
+
21
+ # expose port
22
+ EXPOSE 7860
23
+
24
+ # Launch
25
+ CMD ["/bin/bash", "start.sh"]