Alstears commited on
Commit
242e773
·
verified ·
1 Parent(s): 0bf3333

Create Dockerfile

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