mirror of
https://github.com/Yanyutin753/RefreshToV1Api.git
synced 2025-12-10 01:03:03 +08:00
feat simply flask run
This commit is contained in:
@@ -10,15 +10,13 @@ COPY . /app
|
||||
# 设置环境变量
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
|
||||
RUN chmod +x /app/start.sh
|
||||
|
||||
RUN apt update && apt install -y jq
|
||||
RUN chmod +x /app/main.py
|
||||
|
||||
# # 设置 pip 源为清华大学镜像
|
||||
# RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
|
||||
# 安装任何所需的依赖项
|
||||
RUN pip install --no-cache-dir flask flask_apscheduler gunicorn requests Pillow flask-cors tiktoken fake_useragent redis websocket-client pysocks requests[socks] websocket-client[optional]
|
||||
RUN pip install --no-cache-dir flask flask_apscheduler requests Pillow flask-cors tiktoken fake_useragent redis websocket-client pysocks requests[socks] websocket-client[optional]
|
||||
|
||||
# 在容器启动时运行 Flask 应用
|
||||
CMD ["/app/start.sh"]
|
||||
CMD ["python3", "main.py"]
|
||||
|
||||
Reference in New Issue
Block a user