sanbo commited on
Commit
1d42b12
·
1 Parent(s): f12b03c

update sth. at 2025-01-04 18:44:42

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -6
Dockerfile CHANGED
@@ -15,12 +15,14 @@ RUN apt-get update \
15
  && rm -rf /var/lib/apt/lists/* \
16
  && apt-get clean
17
 
18
- COPY requirements.txt .
19
- RUN pip install --upgrade pip # 升级pip,确保安装无误
20
- RUN pip install --user --no-cache-dir -r requirements.txt \
21
- && find /root/.local \
22
- -type f -name '*.pyc' -delete \
23
- -o -type d -name '__pycache__' -delete
 
 
24
 
25
  # 运行阶段
26
  FROM python:3.11-slim AS runner
 
15
  && rm -rf /var/lib/apt/lists/* \
16
  && apt-get clean
17
 
18
+ # COPY requirements.txt .
19
+ # RUN pip install --upgrade pip # 升级pip,确保安装无误
20
+ # RUN pip install --user --no-cache-dir -r requirements.txt \
21
+ # && find /root/.local \
22
+ # -type f -name '*.pyc' -delete \
23
+ # -o -type d -name '__pycache__' -delete
24
+
25
+ RUN pip install fastapi uvicorn tiktoken uvloop httptools
26
 
27
  # 运行阶段
28
  FROM python:3.11-slim AS runner