Princeaka commited on
Commit
1f2d820
·
verified ·
1 Parent(s): 946223b

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +40 -0
Dockerfile ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-bullseye
2
+
3
+ # Prevent interactive prompts during install
4
+ ENV DEBIAN_FRONTEND=noninteractive
5
+
6
+ # --- System dependencies ---
7
+ RUN apt-get update && apt-get install -y \
8
+ ffmpeg \
9
+ libgl1 \
10
+ libglib2.0-0 \
11
+ libsndfile1 \
12
+ libsm6 \
13
+ libxext6 \
14
+ libxrender1 \
15
+ git \
16
+ git-lfs \
17
+ cmake \
18
+ rsync \
19
+ && rm -rf /var/lib/apt/lists/* \
20
+ && git lfs install
21
+
22
+ # --- Copy requirements and install Python dependencies ---
23
+ COPY requirements.txt /app/requirements.txt
24
+ RUN pip install --no-cache-dir --upgrade pip && \
25
+ pip install --no-cache-dir -r /app/requirements.txt
26
+
27
+ # --- Copy app code ---
28
+ WORKDIR /app
29
+ COPY . /app
30
+
31
+ # --- Environment variables ---
32
+ ENV HF_HUB_DISABLE_TELEMETRY=1 \
33
+ HF_HUB_ENABLE_HF_TRANSFER=1 \
34
+ TOKENIZERS_PARALLELISM=false
35
+
36
+ # --- Expose port for Gradio ---
37
+ EXPOSE 7860
38
+
39
+ # --- Run Gradio app ---
40
+ CMD ["python", "app.py"]