Spaces:
Running
on
Zero
Running
on
Zero
StevenChen16
commited on
Commit
•
3e4e679
1
Parent(s):
8ec2f3f
Delete Dockerfile
Browse files- Dockerfile +0 -20
Dockerfile
DELETED
@@ -1,20 +0,0 @@
|
|
1 |
-
FROM python:3.10-slim
|
2 |
-
|
3 |
-
# 安装 git 和其他必要工具
|
4 |
-
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
|
5 |
-
|
6 |
-
WORKDIR /app
|
7 |
-
|
8 |
-
COPY requirements.txt requirements.txt
|
9 |
-
|
10 |
-
# 安装 Python 依赖项
|
11 |
-
RUN pip install --upgrade pip && pip install -r requirements.txt
|
12 |
-
|
13 |
-
COPY . .
|
14 |
-
|
15 |
-
EXPOSE 5000
|
16 |
-
|
17 |
-
# 设置缓存目录环境变量
|
18 |
-
ENV TRANSFORMERS_CACHE=/tmp/.cache
|
19 |
-
|
20 |
-
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "app:app"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|