Heppinn commited on
Commit
d36b491
·
verified ·
1 Parent(s): 0d355fb

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10
2
+
3
+ # 安装依赖
4
+ RUN apt-get update && apt-get install -y \
5
+ git git-lfs ffmpeg libsm6 libxext6 rsync libgl1-mesa-glx wget \
6
+ && git lfs install
7
+
8
+ # 安装新版 CMake
9
+ RUN wget https://github.com/Kitware/CMake/releases/download/v3.27.9/cmake-3.27.9-linux-x86_64.sh && \
10
+ chmod +x cmake-3.27.9-linux-x86_64.sh && \
11
+ ./cmake-3.27.9-linux-x86_64.sh --skip-license --prefix=/usr/local && \
12
+ rm cmake-3.27.9-linux-x86_64.sh
13
+
14
+ # 安装 Python 依赖
15
+ COPY requirements.txt .
16
+ RUN pip install --upgrade pip && \
17
+ pip install --no-cache-dir -r requirements.txt
18
+
19
+ # 拷贝项目
20
+ COPY . .
21
+
22
+ # 启动入口(如果你用 gradio)
23
+ CMD ["python", "app.py"]