dan92 commited on
Commit
1cb3f25
·
verified ·
1 Parent(s): ccf139b

Delete Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -27
Dockerfile DELETED
@@ -1,27 +0,0 @@
1
- FROM python:3.9-slim
2
-
3
- # 设置工作目录
4
- WORKDIR /app
5
-
6
- # 复制依赖文件
7
- COPY requirements.txt .
8
-
9
- # 安装 gunicorn 和其他依赖
10
- RUN pip install --upgrade pip && \
11
- pip install --no-cache-dir -r requirements.txt gunicorn
12
-
13
- # 复制应用程序文件
14
- COPY app.py .
15
- COPY register_bot.py .
16
- COPY proxy_pool.py .
17
-
18
- # 设置环境变量
19
- ENV FLASK_APP=app.py
20
- ENV FLASK_ENV=production
21
- ENV PYTHONUNBUFFERED=1
22
-
23
- # 暴露端口
24
- EXPOSE 3000
25
-
26
- # 使用 gunicorn 作为生产级 WSGI 服务器
27
- CMD ["gunicorn", "--bind", "0.0.0.0:3000", "--workers", "4", "app:app"]