Marcus719 commited on
Commit
d94e47a
·
verified ·
1 Parent(s): dc742fc

Delete Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -35
Dockerfile DELETED
@@ -1,35 +0,0 @@
1
- FROM python:3.10
2
-
3
- WORKDIR /app
4
-
5
- # 安装所有编译依赖
6
- RUN apt-get update && apt-get install -y \
7
- build-essential \
8
- cmake \
9
- g++ \
10
- git \
11
- ninja-build \
12
- && rm -rf /var/lib/apt/lists/*
13
-
14
- # 升级 pip
15
- RUN pip install --upgrade pip setuptools wheel
16
-
17
- # 设置编译环境变量
18
- ENV CMAKE_ARGS="-DGGML_BLAS=OFF -DGGML_CUDA=OFF"
19
- ENV FORCE_CMAKE=1
20
-
21
- # 从 PyPI 安装 llama-cpp-python
22
- RUN pip install llama-cpp-python==0.2.90 --verbose
23
-
24
- # 安装其他依赖
25
- RUN pip install gradio huggingface_hub
26
-
27
- # 复制代码
28
- COPY app.py .
29
-
30
- ENV GRADIO_SERVER_NAME=0.0.0.0
31
- ENV GRADIO_SERVER_PORT=7860
32
-
33
- EXPOSE 7860
34
-
35
- CMD ["python", "app.py"]