File size: 303 Bytes
497f6aa
00c86e1
497f6aa
00c86e1
8aaa383
 
00c86e1
8aaa383
44cc3fa
00c86e1
8aaa383
09e35b8
8aaa383
 
09e35b8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM python:3.9-slim

WORKDIR /app

# 安装依赖
RUN pip install --no-cache-dir telethon requests aiohttp

# 复制脚本
COPY forwarder.py /app/forwarder.py

# 暴露健康检查端口
EXPOSE 7860

# 同时运行转发器和 HTTP 服务器
CMD python -u forwarder.py 2>&1 & python -m http.server 7860