gccnb commited on
Commit
1378336
·
verified ·
1 Parent(s): 8258a03

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -37
Dockerfile CHANGED
@@ -1,37 +1 @@
1
- FROM python:3.10-slim
2
-
3
- WORKDIR /app
4
-
5
- # Create cache directory with proper permissions
6
- RUN mkdir -p /.cache/huggingface && chmod 777 /.cache/huggingface
7
-
8
- # 安装系统依赖
9
- RUN apt-get update && apt-get install -y \
10
- gcc \
11
- g++ \
12
- && rm -rf /var/lib/apt/lists/*
13
-
14
- # 复制项目文件
15
- COPY requirements.txt .
16
- COPY app.py .
17
- COPY sha3_wasm_bg.7b9ca65ddd.wasm .
18
- COPY templates/ templates/
19
-
20
- # 安装Python依赖
21
- RUN pip install --no-cache-dir -r requirements.txt
22
-
23
- # 设置环境变量
24
- ENV PYTHONUNBUFFERED=1
25
- ENV HOST=0.0.0.0
26
- ENV PORT=7860
27
- ENV TRANSFORMERS_CACHE=/.cache/huggingface
28
-
29
- # 设置权限
30
- RUN chmod +x app.py
31
- RUN chmod 755 sha3_wasm_bg.7b9ca65ddd.wasm
32
-
33
- # 暴露端口
34
- EXPOSE 7860
35
-
36
-
37
- CMD ["python", "app.py"]
 
1
+ RUN git clone https://github.com/iidamie/deepseek2api.git