28 lines
1.1 KiB
Docker
28 lines
1.1 KiB
Docker
# 使用 Ubuntu 最新的 x86_64 版本
|
|
FROM --platform=linux/amd64 ubuntu:latest
|
|
|
|
# 设置时区环境变量
|
|
ENV TZ=Asia/Shanghai
|
|
RUN apt update && apt install -y tzdata && ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
|
|
|
# 安装必要的系统包
|
|
RUN apt update && \
|
|
apt install -y python3 python3-pip git wget curl unzip nano && \
|
|
apt clean && rm -rf /var/lib/apt/lists/*
|
|
|
|
# 设置 Python 环境
|
|
# RUN pip install --upgrade pip --break-system-packages && \
|
|
RUN pip install --upgrade cloudscraper requests BeautifulSoup4 lxml pymysql futu-api cryptography --break-system-packages
|
|
|
|
# 设置 Git 配置
|
|
RUN git config --global user.name "oscar" && \
|
|
git config --global user.email "oscar@easyprompt8.com" && \
|
|
git config --global credential.helper store
|
|
|
|
# 复制 FutuOpenD 安装包(假设你事先下载了 FutuOpenD)
|
|
# 如果你希望 Docker 自动下载,可以在 ENTRYPOINT 里手动执行
|
|
# COPY FutuOpenD.tar.gz /root/
|
|
# RUN tar -xzf /root/FutuOpenD.tar.gz -C /root/ && rm /root/FutuOpenD.tar.gz
|
|
|
|
# 启动时进入 bash 交互模式
|
|
CMD ["/bin/bash"] |